From 07d4c3b3e096e8162266e0a676478ea7b9e63fd2 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 24 Jul 2026 15:03:11 +0000 Subject: [PATCH 1/2] feat: Add new CreateRapidCache feat: Add new UpdateRapidCache feat: Add new GetRapidCache feat: Add new ListRapidCache docs: Update reference documentation for the `StorageControl` service, including `IntelligenceFindings`, `AnywhereCache`, and related configuration messages. PiperOrigin-RevId: 953328804 Source-Link: https://github.com/googleapis/googleapis/commit/ede8b2e652dc3716b544205ef772b39b86e3d2cb Source-Link: https://github.com/googleapis/googleapis-gen/commit/58273f2a4d29467a4d7e011a4273eac6bce94e1c Copy-Tag: eyJwIjoiU3RvcmFnZUNvbnRyb2wvLk93bEJvdC55YW1sIiwiaCI6IjU4MjczZjJhNGQyOTQ2N2E0ZDdlMDExYTQyNzNlYWM2YmNlOTRlMWMifQ== --- .../Storage/Control/V2/StorageControl.php | 39 + .../Storage/Control/V2/AnywhereCache.php | 435 +++ .../V2/CommonLongRunningOperationMetadata.php | 273 ++ .../V2/CreateAnywhereCacheMetadata.php | 322 ++ .../Control/V2/CreateAnywhereCacheRequest.php | 189 + .../Control/V2/CreateFolderRequest.php | 280 ++ .../Control/V2/CreateManagedFolderRequest.php | 221 ++ .../Control/V2/CreateRapidCacheMetadata.php | 366 ++ .../Control/V2/CreateRapidCacheRequest.php | 179 + .../V2/DeleteFolderRecursiveMetadata.php | 112 + .../V2/DeleteFolderRecursiveRequest.php | 225 ++ .../Control/V2/DeleteFolderRequest.php | 221 ++ .../Control/V2/DeleteManagedFolderRequest.php | 271 ++ .../V2/DisableAnywhereCacheRequest.php | 128 + .../Storage/Control/V2/FindingCategory.php | 61 + .../Storage/Control/V2/FindingSeverity.php | 54 + .../Storage/Control/V2/FindingSummary.php | 307 ++ .../V2/FindingSummary/SummaryDetails.php | 176 + .../SummaryDetails/ResourceType.php | 61 + .../Cloud/Storage/Control/V2/FindingType.php | 77 + .../Cloud/Storage/Control/V2/Folder.php | 258 ++ .../Control/V2/GetAnywhereCacheRequest.php | 124 + .../V2/GetFolderIntelligenceConfigRequest.php | 93 + .../Storage/Control/V2/GetFolderRequest.php | 221 ++ .../V2/GetIntelligenceFindingRequest.php | 93 + .../GetIntelligenceFindingRevisionRequest.php | 93 + .../Control/V2/GetManagedFolderRequest.php | 225 ++ ...tOrganizationIntelligenceConfigRequest.php | 93 + .../GetProjectIntelligenceConfigRequest.php | 93 + .../Control/V2/GetRapidCacheRequest.php | 124 + .../Control/V2/GetStorageLayoutRequest.php | 162 + .../Storage/Control/V2/IntelligenceConfig.php | 314 ++ .../V2/IntelligenceConfig/EditionConfig.php | 92 + .../EffectiveIntelligenceConfig.php | 113 + .../EffectiveEdition.php | 61 + .../Control/V2/IntelligenceConfig/Filter.php | 185 + .../Filter/CloudStorageBuckets.php | 95 + .../Filter/CloudStorageLocations.php | 75 + .../V2/IntelligenceConfig/TrialConfig.php | 77 + .../Control/V2/IntelligenceFinding.php | 594 ++++ ...dlineAndArchivalStorageOperationsSpike.php | 142 + .../BucketContribution.php | 213 ++ .../BucketContribution/Contribution.php | 72 + .../Contribution/PrefixContribution.php | 143 + .../CrossRegionEgressSpike.php | 149 + .../BucketContribution.php | 221 ++ .../BucketContribution/Contribution.php | 72 + .../Contribution/PrefixContribution.php | 148 + .../StorageGrowthAboveTrend.php | 140 + .../BucketContribution.php | 180 + .../ThrottledRequestSpike.php | 145 + .../BucketContribution.php | 217 ++ .../BucketContribution/Contribution.php | 72 + .../Contribution/PrefixContribution.php | 143 + .../V2/IntelligenceFindingRevision.php | 172 + .../Control/V2/ListAnywhereCachesRequest.php | 195 + .../Control/V2/ListAnywhereCachesResponse.php | 105 + .../Storage/Control/V2/ListFoldersRequest.php | 373 ++ .../Control/V2/ListFoldersResponse.php | 105 + ...istIntelligenceFindingRevisionsRequest.php | 181 + ...stIntelligenceFindingRevisionsResponse.php | 102 + .../V2/ListIntelligenceFindingsRequest.php | 218 ++ .../V2/ListIntelligenceFindingsResponse.php | 106 + .../Control/V2/ListManagedFoldersRequest.php | 233 ++ .../Control/V2/ListManagedFoldersResponse.php | 105 + .../Control/V2/ListRapidCachesRequest.php | 195 + .../Control/V2/ListRapidCachesResponse.php | 105 + .../Storage/Control/V2/ManagedFolder.php | 249 ++ .../V2/ManagedFolder/RapidCacheConfig.php | 85 + .../RapidCacheConfig/RapidCachePolicy.php | 105 + .../RapidCachePolicy/IngestOnWrite.php | 56 + .../Control/V2/PauseAnywhereCacheRequest.php | 128 + .../Storage/Control/V2/PendingRenameInfo.php | 67 + .../Cloud/Storage/Control/V2/RapidCache.php | 421 +++ .../Control/V2/RenameFolderMetadata.php | 146 + .../Control/V2/RenameFolderRequest.php | 261 ++ .../Control/V2/ResumeAnywhereCacheRequest.php | 128 + .../Storage/Control/V2/StorageLayout.php | 239 ++ .../StorageLayout/CustomPlacementConfig.php | 69 + .../StorageLayout/HierarchicalNamespace.php | 67 + .../SummarizeIntelligenceFindingsRequest.php | 301 ++ .../ResourceScope.php | 61 + .../SummarizeIntelligenceFindingsResponse.php | 110 + .../V2/UpdateAnywhereCacheMetadata.php | 322 ++ .../Control/V2/UpdateAnywhereCacheRequest.php | 210 ++ .../UpdateFolderIntelligenceConfigRequest.php | 185 + .../Control/V2/UpdateManagedFolderRequest.php | 315 ++ ...eOrganizationIntelligenceConfigRequest.php | 185 + ...UpdateProjectIntelligenceConfigRequest.php | 185 + .../Control/V2/UpdateRapidCacheMetadata.php | 366 ++ .../Control/V2/UpdateRapidCacheRequest.php | 210 ++ .../create_anywhere_cache.php | 86 + .../V2/StorageControlClient/create_folder.php | 82 + .../create_managed_folder.php | 77 + .../create_rapid_cache.php | 86 + .../V2/StorageControlClient/delete_folder.php | 71 + .../delete_folder_recursive.php | 83 + .../delete_managed_folder.php | 75 + .../disable_anywhere_cache.php | 79 + .../get_anywhere_cache.php | 76 + .../V2/StorageControlClient/get_folder.php | 73 + .../get_folder_intelligence_config.php | 74 + .../StorageControlClient/get_iam_policy.php | 75 + .../get_intelligence_finding.php | 78 + .../get_intelligence_finding_revision.php | 79 + .../get_managed_folder.php | 77 + .../get_organization_intelligence_config.php | 74 + .../get_project_intelligence_config.php | 74 + .../StorageControlClient/get_rapid_cache.php | 72 + .../get_storage_layout.php | 72 + .../list_anywhere_caches.php | 76 + .../V2/StorageControlClient/list_folders.php | 78 + .../list_intelligence_finding_revisions.php | 83 + .../list_intelligence_findings.php | 78 + .../list_managed_folders.php | 76 + .../list_rapid_caches.php | 76 + .../pause_anywhere_cache.php | 76 + .../V2/StorageControlClient/rename_folder.php | 90 + .../resume_anywhere_cache.php | 76 + .../StorageControlClient/set_iam_policy.php | 77 + .../summarize_intelligence_findings.php | 80 + .../test_iam_permissions.php | 84 + .../update_anywhere_cache.php | 75 + .../update_folder_intelligence_config.php | 62 + .../update_managed_folder.php | 60 + ...pdate_organization_intelligence_config.php | 62 + .../update_project_intelligence_config.php | 62 + .../update_rapid_cache.php | 74 + .../v2/src/V2/Client/StorageControlClient.php | 1594 +++++++++ .../v2/src/V2/gapic_metadata.json | 203 ++ .../storage_control_client_config.json | 232 ++ .../storage_control_descriptor_config.php | 697 ++++ .../storage_control_rest_client_config.php | 257 ++ .../V2/Client/StorageControlClientTest.php | 3167 +++++++++++++++++ 134 files changed, 24863 insertions(+) create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/GPBMetadata/Google/Storage/Control/V2/StorageControl.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/AnywhereCache.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CommonLongRunningOperationMetadata.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateAnywhereCacheMetadata.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateAnywhereCacheRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateFolderRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateManagedFolderRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateRapidCacheMetadata.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateRapidCacheRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRecursiveMetadata.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRecursiveRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteManagedFolderRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DisableAnywhereCacheRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingCategory.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSeverity.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary/SummaryDetails.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary/SummaryDetails/ResourceType.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingType.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/Folder.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetAnywhereCacheRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetFolderIntelligenceConfigRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetFolderRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetIntelligenceFindingRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetIntelligenceFindingRevisionRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetManagedFolderRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetOrganizationIntelligenceConfigRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetProjectIntelligenceConfigRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetRapidCacheRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetStorageLayoutRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EditionConfig.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EffectiveIntelligenceConfig.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EffectiveIntelligenceConfig/EffectiveEdition.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter/CloudStorageBuckets.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter/CloudStorageLocations.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/TrialConfig.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution/Contribution.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution/Contribution/PrefixContribution.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution/Contribution.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution/Contribution/PrefixContribution.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/StorageGrowthAboveTrend.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/StorageGrowthAboveTrend/BucketContribution.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution/Contribution.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution/Contribution/PrefixContribution.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFindingRevision.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListAnywhereCachesRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListAnywhereCachesResponse.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListFoldersRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListFoldersResponse.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingRevisionsRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingRevisionsResponse.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingsRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingsResponse.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListManagedFoldersRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListManagedFoldersResponse.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListRapidCachesRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListRapidCachesResponse.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder/RapidCacheConfig.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder/RapidCacheConfig/RapidCachePolicy.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder/RapidCacheConfig/RapidCachePolicy/IngestOnWrite.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/PauseAnywhereCacheRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/PendingRenameInfo.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RapidCache.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RenameFolderMetadata.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RenameFolderRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ResumeAnywhereCacheRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout/CustomPlacementConfig.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout/HierarchicalNamespace.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsRequest/ResourceScope.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsResponse.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateAnywhereCacheMetadata.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateAnywhereCacheRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateFolderIntelligenceConfigRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateManagedFolderRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateOrganizationIntelligenceConfigRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateProjectIntelligenceConfigRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateRapidCacheMetadata.php create mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateRapidCacheRequest.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_anywhere_cache.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_folder.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_managed_folder.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_rapid_cache.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_folder.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_folder_recursive.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_managed_folder.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/disable_anywhere_cache.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_anywhere_cache.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_folder.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_folder_intelligence_config.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_iam_policy.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_intelligence_finding.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_intelligence_finding_revision.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_managed_folder.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_organization_intelligence_config.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_project_intelligence_config.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_rapid_cache.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_storage_layout.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_anywhere_caches.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_folders.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_intelligence_finding_revisions.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_intelligence_findings.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_managed_folders.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_rapid_caches.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/pause_anywhere_cache.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/rename_folder.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/resume_anywhere_cache.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/set_iam_policy.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/summarize_intelligence_findings.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/test_iam_permissions.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_anywhere_cache.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_folder_intelligence_config.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_managed_folder.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_organization_intelligence_config.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_project_intelligence_config.php create mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_rapid_cache.php create mode 100644 owl-bot-staging/StorageControl/v2/src/V2/Client/StorageControlClient.php create mode 100644 owl-bot-staging/StorageControl/v2/src/V2/gapic_metadata.json create mode 100644 owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_client_config.json create mode 100644 owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_descriptor_config.php create mode 100644 owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_rest_client_config.php create mode 100644 owl-bot-staging/StorageControl/v2/tests/Unit/V2/Client/StorageControlClientTest.php diff --git a/owl-bot-staging/StorageControl/v2/proto/src/GPBMetadata/Google/Storage/Control/V2/StorageControl.php b/owl-bot-staging/StorageControl/v2/proto/src/GPBMetadata/Google/Storage/Control/V2/StorageControl.php new file mode 100644 index 000000000000..6c874b5180c5 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/GPBMetadata/Google/Storage/Control/V2/StorageControl.php @@ -0,0 +1,39 @@ +internalAddGeneratedFile( + "\x0A\xC4\xE2\x01\x0A/google/storage/control/v2/storage_control.proto\x12\x19google.storage.control.v2\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A\x18google/api/routing.proto\x1A\x1Egoogle/iam/v1/iam_policy.proto\x1A\x1Agoogle/iam/v1/policy.proto\x1A#google/longrunning/operations.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\x1A\x1Agoogle/type/interval.proto\"+\x0A\x11PendingRenameInfo\x12\x16\x0A\x09operation\x18\x01 \x01(\x09B\x03\xE0A\x03\"\xE2\x02\x0A\x06Folder\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1B\x0A\x0Emetageneration\x18\x03 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12N\x0A\x13pending_rename_info\x18\x07 \x01(\x0B2,.google.storage.control.v2.PendingRenameInfoB\x03\xE0A\x03:l\xEAAi\x0A\x1Dstorage.googleapis.com/Folder\x127projects/{project}/buckets/{bucket}/folders/{folder=**}*\x07folders2\x06folder\"\xF4\x01\x0A\x10GetFolderRequest\x123\x0A\x04name\x18\x06 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Folder\x12\$\x0A\x17if_metageneration_match\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\xD5\x01\x0A\x13CreateFolderRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Dstorage.googleapis.com/Folder\x126\x0A\x06folder\x18\x02 \x01(\x0B2!.google.storage.control.v2.FolderB\x03\xE0A\x02\x12\x16\x0A\x09folder_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09recursive\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xF7\x01\x0A\x13DeleteFolderRequest\x123\x0A\x04name\x18\x06 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Folder\x12\$\x0A\x17if_metageneration_match\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\x8C\x02\x0A\x12ListFoldersRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Dstorage.googleapis.com/Folder\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06prefix\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09delimiter\x18\x08 \x01(\x09B\x03\xE0A\x01\x12 \x0A\x13lexicographic_start\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11lexicographic_end\x18\x07 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x0Arequest_id\x18\x09 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"b\x0A\x13ListFoldersResponse\x122\x0A\x07folders\x18\x01 \x03(\x0B2!.google.storage.control.v2.Folder\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x9B\x02\x0A\x13RenameFolderRequest\x123\x0A\x04name\x18\x07 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Folder\x12\"\x0A\x15destination_folder_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\$\x0A\x17if_metageneration_match\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x05 \x01(\x03H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x06 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\x8A\x02\x0A\x1CDeleteFolderRecursiveRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Folder\x12)\x0A\x17if_metageneration_match\x18\x02 \x01(\x03B\x03\xE0A\x01H\x00\x88\x01\x01\x12-\x0A\x1Bif_metageneration_not_match\x18\x03 \x01(\x03B\x03\xE0A\x01H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\x9A\x02\x0A\"CommonLongRunningOperationMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04type\x18\x04 \x01(\x09B\x03\xE0A\x03\x12#\x0A\x16requested_cancellation\x18\x05 \x01(\x08B\x03\xE0A\x03\x12\x1D\x0A\x10progress_percent\x18\x06 \x01(\x05B\x03\xE0A\x03\"\xA7\x01\x0A\x14RenameFolderMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x18\x0A\x10source_folder_id\x18\x02 \x01(\x09\x12\x1D\x0A\x15destination_folder_id\x18\x03 \x01(\x09\"\x8A\x01\x0A\x1DDeleteFolderRecursiveMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x11\x0A\x09folder_id\x18\x02 \x01(\x09\"\xF8\x03\x0A\x0DStorageLayout\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x15\x0A\x08location\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x1A\x0A\x0Dlocation_type\x18\x03 \x01(\x09B\x03\xE0A\x03\x12d\x0A\x17custom_placement_config\x18\x04 \x01(\x0B2>.google.storage.control.v2.StorageLayout.CustomPlacementConfigB\x03\xE0A\x03\x12c\x0A\x16hierarchical_namespace\x18\x05 \x01(\x0B2>.google.storage.control.v2.StorageLayout.HierarchicalNamespaceB\x03\xE0A\x03\x1A/\x0A\x15CustomPlacementConfig\x12\x16\x0A\x0Edata_locations\x18\x01 \x03(\x09\x1A(\x0A\x15HierarchicalNamespace\x12\x0F\x0A\x07enabled\x18\x01 \x01(\x08:{\xEAAx\x0A\$storage.googleapis.com/StorageLayout\x121projects/{project}/buckets/{bucket}/storageLayout*\x0EstorageLayouts2\x0DstorageLayout\"\x86\x01\x0A\x17GetStorageLayoutRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/StorageLayout\x12\x0E\x0A\x06prefix\x18\x02 \x01(\x09\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\x9D\x07\x0A\x0DManagedFolder\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1B\x0A\x0Emetageneration\x18\x03 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12Z\x0A\x12rapid_cache_config\x18\x06 \x01(\x0B29.google.storage.control.v2.ManagedFolder.RapidCacheConfigH\x00\x88\x01\x01\x1A\xE8\x03\x0A\x10RapidCacheConfig\x12^\x0A\x08policies\x18\x01 \x03(\x0B2G.google.storage.control.v2.ManagedFolder.RapidCacheConfig.PoliciesEntryB\x03\xE0A\x01\x1A\xF6\x01\x0A\x10RapidCachePolicy\x12\x1B\x0A\x0Erapid_cache_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12v\x0A\x0Fingest_on_write\x18\x02 \x01(\x0E2X.google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy.IngestOnWriteB\x03\xE0A\x02\"M\x0A\x0DIngestOnWrite\x12\x1F\x0A\x1BINGEST_ON_WRITE_UNSPECIFIED\x10\x00\x12\x1B\x0A\x17INGEST_ON_WRITE_ENABLED\x10\x01\x1A{\x0A\x0DPoliciesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12Y\x0A\x05value\x18\x02 \x01(\x0B2J.google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy:\x028\x01:\x91\x01\xEAA\x8D\x01\x0A\$storage.googleapis.com/ManagedFolder\x12Fprojects/{project}/buckets/{bucket}/managedFolders/{managed_folder=**}*\x0EmanagedFolders2\x0DmanagedFolderB\x15\x0A\x13_rapid_cache_config\"\x82\x02\x0A\x17GetManagedFolderRequest\x12:\x0A\x04name\x18\x06 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/ManagedFolder\x12\$\x0A\x17if_metageneration_match\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\xE2\x01\x0A\x1ACreateManagedFolderRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$storage.googleapis.com/ManagedFolder\x12E\x0A\x0Emanaged_folder\x18\x02 \x01(\x0B2(.google.storage.control.v2.ManagedFolderB\x03\xE0A\x02\x12\x1E\x0A\x11managed_folder_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\x9E\x02\x0A\x1ADeleteManagedFolderRequest\x12:\x0A\x04name\x18\x07 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/ManagedFolder\x12\$\x0A\x17if_metageneration_match\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03H\x01\x88\x01\x01\x12\x17\x0A\x0Fallow_non_empty\x18\x05 \x01(\x08\x12\x1F\x0A\x0Arequest_id\x18\x06 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\xC0\x01\x0A\x19ListManagedFoldersRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$storage.googleapis.com/ManagedFolder\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06prefix\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"x\x0A\x1AListManagedFoldersResponse\x12A\x0A\x0Fmanaged_folders\x18\x01 \x03(\x0B2(.google.storage.control.v2.ManagedFolder\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xD0\x02\x0A\x1AUpdateManagedFolderRequest\x12E\x0A\x0Emanaged_folder\x18\x01 \x01(\x0B2(.google.storage.control.v2.ManagedFolderB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12)\x0A\x17if_metageneration_match\x18\x03 \x01(\x03B\x03\xE0A\x01H\x00\x88\x01\x01\x12-\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03B\x03\xE0A\x01H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\xE7\x02\x0A\x1BCreateAnywhereCacheMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x1E\x0A\x11anywhere_cache_id\x18\x02 \x01(\x09H\x00\x88\x01\x01\x12\x11\x0A\x04zone\x18\x06 \x01(\x09H\x01\x88\x01\x01\x12+\x0A\x03ttl\x18\x03 \x01(\x0B2\x19.google.protobuf.DurationH\x02\x88\x01\x01\x12\x1D\x0A\x10admission_policy\x18\x05 \x01(\x09H\x03\x88\x01\x01\x12!\x0A\x0Fingest_on_write\x18\x07 \x01(\x08B\x03\xE0A\x01H\x04\x88\x01\x01B\x14\x0A\x12_anywhere_cache_idB\x07\x0A\x05_zoneB\x06\x0A\x04_ttlB\x13\x0A\x11_admission_policyB\x12\x0A\x10_ingest_on_write\"\x8B\x03\x0A\x18CreateRapidCacheMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x1B\x0A\x0Erapid_cache_id\x18\x02 \x01(\x09H\x00\x88\x01\x01\x12\x11\x0A\x04zone\x18\x03 \x01(\x09H\x01\x88\x01\x01\x12+\x0A\x03ttl\x18\x04 \x01(\x0B2\x19.google.protobuf.DurationH\x02\x88\x01\x01\x12\x1D\x0A\x10admission_policy\x18\x05 \x01(\x09H\x03\x88\x01\x01\x12!\x0A\x0Fingest_on_write\x18\x06 \x01(\x08B\x03\xE0A\x01H\x04\x88\x01\x01\x12\x1C\x0A\x0Acache_type\x18\x07 \x01(\x09B\x03\xE0A\x01H\x05\x88\x01\x01B\x11\x0A\x0F_rapid_cache_idB\x07\x0A\x05_zoneB\x06\x0A\x04_ttlB\x13\x0A\x11_admission_policyB\x12\x0A\x10_ingest_on_writeB\x0D\x0A\x0B_cache_type\"\xE7\x02\x0A\x1BUpdateAnywhereCacheMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x1E\x0A\x11anywhere_cache_id\x18\x02 \x01(\x09H\x00\x88\x01\x01\x12\x11\x0A\x04zone\x18\x05 \x01(\x09H\x01\x88\x01\x01\x12+\x0A\x03ttl\x18\x03 \x01(\x0B2\x19.google.protobuf.DurationH\x02\x88\x01\x01\x12\"\x0A\x10admission_policy\x18\x04 \x01(\x09B\x03\xE0A\x01H\x03\x88\x01\x01\x12\x1C\x0A\x0Fingest_on_write\x18\x06 \x01(\x08H\x04\x88\x01\x01B\x14\x0A\x12_anywhere_cache_idB\x07\x0A\x05_zoneB\x06\x0A\x04_ttlB\x13\x0A\x11_admission_policyB\x12\x0A\x10_ingest_on_write\"\x8B\x03\x0A\x18UpdateRapidCacheMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x1B\x0A\x0Erapid_cache_id\x18\x02 \x01(\x09H\x00\x88\x01\x01\x12\x11\x0A\x04zone\x18\x03 \x01(\x09H\x01\x88\x01\x01\x12+\x0A\x03ttl\x18\x04 \x01(\x0B2\x19.google.protobuf.DurationH\x02\x88\x01\x01\x12\"\x0A\x10admission_policy\x18\x05 \x01(\x09B\x03\xE0A\x01H\x03\x88\x01\x01\x12\x1C\x0A\x0Fingest_on_write\x18\x06 \x01(\x08H\x04\x88\x01\x01\x12\x1C\x0A\x0Acache_type\x18\x07 \x01(\x09B\x03\xE0A\x01H\x05\x88\x01\x01B\x11\x0A\x0F_rapid_cache_idB\x07\x0A\x05_zoneB\x06\x0A\x04_ttlB\x13\x0A\x11_admission_policyB\x12\x0A\x10_ingest_on_writeB\x0D\x0A\x0B_cache_type\"\xDC\x03\x0A\x0DAnywhereCache\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x05\x12\x11\x0A\x04zone\x18\x0A \x01(\x09B\x03\xE0A\x05\x12&\x0A\x03ttl\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x12\x18\x0A\x10admission_policy\x18\x09 \x01(\x09\x12\x12\x0A\x05state\x18\x05 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1B\x0A\x0Epending_update\x18\x08 \x01(\x08B\x03\xE0A\x03\x12!\x0A\x0Fingest_on_write\x18\x0B \x01(\x08B\x03\xE0A\x01H\x00\x88\x01\x01:\x8E\x01\xEAA\x8A\x01\x0A\$storage.googleapis.com/AnywhereCache\x12Cprojects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}*\x0EanywhereCaches2\x0DanywhereCacheB\x12\x0A\x10_ingest_on_write\"\xC2\x01\x0A\x1ACreateAnywhereCacheRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$storage.googleapis.com/AnywhereCache\x12E\x0A\x0Eanywhere_cache\x18\x03 \x01(\x0B2(.google.storage.control.v2.AnywhereCacheB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xBA\x01\x0A\x1AUpdateAnywhereCacheRequest\x12E\x0A\x0Eanywhere_cache\x18\x01 \x01(\x0B2(.google.storage.control.v2.AnywhereCacheB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"z\x0A\x1BDisableAnywhereCacheRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/AnywhereCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"x\x0A\x19PauseAnywhereCacheRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/AnywhereCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"y\x0A\x1AResumeAnywhereCacheRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/AnywhereCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"v\x0A\x17GetAnywhereCacheRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/AnywhereCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xA1\x01\x0A\x19ListAnywhereCachesRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$storage.googleapis.com/AnywhereCache\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"x\x0A\x1AListAnywhereCachesResponse\x12A\x0A\x0Fanywhere_caches\x18\x01 \x03(\x0B2(.google.storage.control.v2.AnywhereCache\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xAA\x03\x0A\x0ARapidCache\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x05\x12\x11\x0A\x04zone\x18\x02 \x01(\x09B\x03\xE0A\x05\x12\x17\x0A\x0Acache_type\x18\x03 \x01(\x09B\x03\xE0A\x05\x12&\x0A\x03ttl\x18\x04 \x01(\x0B2\x19.google.protobuf.Duration\x12\x18\x0A\x10admission_policy\x18\x05 \x01(\x09\x12\x12\x0A\x05state\x18\x06 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1B\x0A\x0Epending_update\x18\x09 \x01(\x08B\x03\xE0A\x03:~\xEAA{\x0A!storage.googleapis.com/RapidCache\x12=projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}*\x0BrapidCaches2\x0ArapidCache\"\xB6\x01\x0A\x17CreateRapidCacheRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x12!storage.googleapis.com/RapidCache\x12?\x0A\x0Brapid_cache\x18\x02 \x01(\x0B2%.google.storage.control.v2.RapidCacheB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xB1\x01\x0A\x17UpdateRapidCacheRequest\x12?\x0A\x0Brapid_cache\x18\x01 \x01(\x0B2%.google.storage.control.v2.RapidCacheB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"p\x0A\x14GetRapidCacheRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!storage.googleapis.com/RapidCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\x9B\x01\x0A\x16ListRapidCachesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x12!storage.googleapis.com/RapidCache\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"o\x0A\x17ListRapidCachesResponse\x12;\x0A\x0Crapid_caches\x18\x01 \x03(\x0B2%.google.storage.control.v2.RapidCache\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x9E\x0E\x0A\x12IntelligenceConfig\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12X\x0A\x0Eedition_config\x18\x02 \x01(\x0E2;.google.storage.control.v2.IntelligenceConfig.EditionConfigB\x03\xE0A\x01\x124\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12I\x0A\x06filter\x18\x04 \x01(\x0B24.google.storage.control.v2.IntelligenceConfig.FilterB\x03\xE0A\x01\x12u\x0A\x1Deffective_intelligence_config\x18\x05 \x01(\x0B2I.google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfigB\x03\xE0A\x03\x12O\x0A\x0Ctrial_config\x18\x07 \x01(\x0B29.google.storage.control.v2.IntelligenceConfig.TrialConfig\x1A\xFC\x04\x0A\x06Filter\x12v\x0A included_cloud_storage_locations\x18\x01 \x01(\x0B2J.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocationsH\x00\x12v\x0A excluded_cloud_storage_locations\x18\x02 \x01(\x0B2J.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocationsH\x00\x12r\x0A\x1Eincluded_cloud_storage_buckets\x18\x03 \x01(\x0B2H.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBucketsH\x01\x12r\x0A\x1Eexcluded_cloud_storage_buckets\x18\x04 \x01(\x0B2H.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBucketsH\x01\x1A/\x0A\x15CloudStorageLocations\x12\x16\x0A\x09locations\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A5\x0A\x13CloudStorageBuckets\x12\x1E\x0A\x11bucket_id_regexes\x18\x01 \x03(\x09B\x03\xE0A\x01B\x19\x0A\x17cloud_storage_locationsB\x17\x0A\x15cloud_storage_buckets\x1A\x8A\x02\x0A\x1BEffectiveIntelligenceConfig\x12z\x0A\x11effective_edition\x18\x01 \x01(\x0E2Z.google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEditionB\x03\xE0A\x03\x12 \x0A\x13intelligence_config\x18\x02 \x01(\x09B\x03\xE0A\x03\"M\x0A\x10EffectiveEdition\x12!\x0A\x1DEFFECTIVE_EDITION_UNSPECIFIED\x10\x00\x12\x08\x0A\x04NONE\x10\x01\x12\x0C\x0A\x08STANDARD\x10\x02\x1AC\x0A\x0BTrialConfig\x124\x0A\x0Bexpire_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\"s\x0A\x0DEditionConfig\x12\x1E\x0A\x1AEDITION_CONFIG_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07INHERIT\x10\x01\x12\x0C\x0A\x08DISABLED\x10\x02\x12\x0C\x0A\x08STANDARD\x10\x03\x12\x09\x0A\x05TRIAL\x10\x05\x12\x0E\x0A\x0AESSENTIALS\x10\x06:\x8B\x02\xEAA\x87\x02\x0A)storage.googleapis.com/IntelligenceConfig\x128folders/{folder}/locations/{location}/intelligenceConfig\x12;organizations/{org}/locations/{location}/intelligenceConfig\x12:projects/{project}/locations/{location}/intelligenceConfig*\x13intelligenceConfigs2\x12intelligenceConfig\"\xD5\x01\x0A+UpdateOrganizationIntelligenceConfigRequest\x12O\x0A\x13intelligence_config\x18\x01 \x01(\x0B2-.google.storage.control.v2.IntelligenceConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xCF\x01\x0A%UpdateFolderIntelligenceConfigRequest\x12O\x0A\x13intelligence_config\x18\x01 \x01(\x0B2-.google.storage.control.v2.IntelligenceConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xD0\x01\x0A&UpdateProjectIntelligenceConfigRequest\x12O\x0A\x13intelligence_config\x18\x01 \x01(\x0B2-.google.storage.control.v2.IntelligenceConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"k\x0A(GetOrganizationIntelligenceConfigRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)storage.googleapis.com/IntelligenceConfig\"e\x0A\"GetFolderIntelligenceConfigRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)storage.googleapis.com/IntelligenceConfig\"f\x0A#GetProjectIntelligenceConfigRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)storage.googleapis.com/IntelligenceConfig\"\xBE \x0A\x13IntelligenceFinding\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x03\x129\x0A\x04type\x18\x03 \x01(\x0E2&.google.storage.control.v2.FindingTypeB\x03\xE0A\x03\x12A\x0A\x08category\x18\x04 \x01(\x0E2*.google.storage.control.v2.FindingCategoryB\x03\xE0A\x03\x12A\x0A\x08severity\x18\x05 \x01(\x0E2*.google.storage.control.v2.FindingSeverityB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1C\x0A\x0Ftarget_resource\x18\x08 \x01(\x09B\x03\xE0A\x03\x12!\x0A\x14associated_resources\x18\x09 \x03(\x09B\x03\xE0A\x03\x126\x0A\x12observation_period\x18\x0A \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12\x97\x01\x0A.coldline_and_archival_storage_operations_spike\x18\x0B \x01(\x0B2X.google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpikeB\x03\xE0A\x03H\x00\x12m\x0A\x18throttled_requests_spike\x18\x0C \x01(\x0B2D.google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpikeB\x03\xE0A\x03H\x00\x12o\x0A\x19cross_region_egress_spike\x18\x0D \x01(\x0B2E.google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpikeB\x03\xE0A\x03H\x00\x12q\x0A\x1Astorage_growth_above_trend\x18\x0E \x01(\x0B2F.google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrendB\x03\xE0A\x03H\x00\x1A\x89\x07\x0A)ColdlineAndArchivalStorageOperationsSpike\x12 \x0A\x13percentage_increase\x18\x01 \x01(\x01B\x03\xE0A\x03\x12#\x0A\x16total_operations_count\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x85\x01\x0A\x0Btop_buckets\x18\x03 \x03(\x0B2k.google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContributionB\x03\xE0A\x03\x1A\x8C\x05\x0A\x12BucketContribution\x125\x0A\x06bucket\x18\x01 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Bucket\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12#\x0A\x16total_operations_count\x18\x03 \x01(\x03B\x03\xE0A\x03\x12\x95\x01\x0A\x0Ccontribution\x18\x04 \x01(\x0B2x.google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.ContributionB\x03\xE0A\x03H\x00\x12(\x0A\x05error\x18\x05 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03H\x00\x1A\xAA\x02\x0A\x0CContribution\x12\xA7\x01\x0A\x0Ctop_prefixes\x18\x01 \x03(\x0B2\x8B\x01.google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.Contribution.PrefixContributionB\x03\xE0A\x03\x1Ap\x0A\x12PrefixContribution\x12\x13\x0A\x06prefix\x18\x01 \x01(\x09B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12#\x0A\x16total_operations_count\x18\x03 \x01(\x03B\x03\xE0A\x03B\x09\x0A\x07details\x1A\xAF\x06\x0A\x16CrossRegionEgressSpike\x12\x1F\x0A\x12total_egress_bytes\x18\x01 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12r\x0A\x0Btop_buckets\x18\x03 \x03(\x0B2X.google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContributionB\x03\xE0A\x03\x1A\xDD\x04\x0A\x12BucketContribution\x125\x0A\x06bucket\x18\x01 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Bucket\x12\x1F\x0A\x12total_egress_bytes\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03\x12\x82\x01\x0A\x0Ccontribution\x18\x04 \x01(\x0B2e.google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.ContributionB\x03\xE0A\x03H\x00\x12(\x0A\x05error\x18\x05 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03H\x00\x1A\x92\x02\x0A\x0CContribution\x12\x93\x01\x0A\x0Ctop_prefixes\x18\x01 \x03(\x0B2x.google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution.PrefixContributionB\x03\xE0A\x03\x1Al\x0A\x12PrefixContribution\x12\x13\x0A\x06prefix\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x1F\x0A\x12total_egress_bytes\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03B\x09\x0A\x07details\x1A\xAB\x06\x0A\x15ThrottledRequestSpike\x12\x1F\x0A\x12throttled_requests\x18\x01 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12q\x0A\x0Btop_buckets\x18\x03 \x03(\x0B2W.google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContributionB\x03\xE0A\x03\x1A\xDB\x04\x0A\x12BucketContribution\x125\x0A\x06bucket\x18\x01 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Bucket\x12\x1F\x0A\x12throttled_requests\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03\x12\x81\x01\x0A\x0Ccontribution\x18\x04 \x01(\x0B2d.google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.ContributionB\x03\xE0A\x03H\x00\x12(\x0A\x05error\x18\x05 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03H\x00\x1A\x91\x02\x0A\x0CContribution\x12\x92\x01\x0A\x0Ctop_prefixes\x18\x01 \x03(\x0B2w.google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution.PrefixContributionB\x03\xE0A\x03\x1Al\x0A\x12PrefixContribution\x12\x13\x0A\x06prefix\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x1F\x0A\x12throttled_requests\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03B\x09\x0A\x07details\x1A\xA7\x03\x0A\x17StorageGrowthAboveTrend\x12'\x0A\x1Atotal_storage_growth_bytes\x18\x01 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12s\x0A\x0Btop_buckets\x18\x03 \x03(\x0B2Y.google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrend.BucketContributionB\x03\xE0A\x03\x1A\xCB\x01\x0A\x12BucketContribution\x125\x0A\x06bucket\x18\x01 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Bucket\x12'\x0A\x1Atotal_storage_growth_bytes\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03\x12(\x0A\x05error\x18\x05 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03H\x00B\x09\x0A\x07details:\xB0\x01\xEAA\xAC\x01\x0A*storage.googleapis.com/IntelligenceFinding\x12Sprojects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}*\x14intelligenceFindings2\x13intelligenceFindingB\x1E\x0A\x1Cintelligence_finding_details\"\x8D\x03\x0A\x1BIntelligenceFindingRevision\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12E\x0A\x08snapshot\x18\x02 \x01(\x0B2..google.storage.control.v2.IntelligenceFindingB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03:\xDD\x01\xEAA\xD9\x01\x0A2storage.googleapis.com/IntelligenceFindingRevision\x12hprojects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}*\x1CintelligenceFindingRevisions2\x1BintelligenceFindingRevision\"a\x0A\x1DGetIntelligenceFindingRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*storage.googleapis.com/IntelligenceFinding\"\xAB\x01\x0A\x1FListIntelligenceFindingsRequest\x12B\x0A\x06parent\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x12*storage.googleapis.com/IntelligenceFinding\x12\x13\x0A\x06filter\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x8A\x01\x0A ListIntelligenceFindingsResponse\x12M\x0A\x15intelligence_findings\x18\x01 \x03(\x0B2..google.storage.control.v2.IntelligenceFinding\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xB7\x02\x0A\$SummarizeIntelligenceFindingsRequest\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12j\x0A\x0Eresource_scope\x18\x02 \x01(\x0E2M.google.storage.control.v2.SummarizeIntelligenceFindingsRequest.ResourceScopeB\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x04 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"H\x0A\x0DResourceScope\x12\x1E\x0A\x1ARESOURCE_SCOPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06PARENT\x10\x01\x12\x0B\x0A\x07PROJECT\x10\x02\"\x86\x01\x0A%SummarizeIntelligenceFindingsResponse\x12D\x0A\x11finding_summaries\x18\x01 \x03(\x0B2).google.storage.control.v2.FindingSummary\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"q\x0A%GetIntelligenceFindingRevisionRequest\x12H\x0A\x04name\x18\x01 \x01(\x09B:\xE0A\x02\xFAA4\x0A2storage.googleapis.com/IntelligenceFindingRevision\"\xA6\x01\x0A'ListIntelligenceFindingRevisionsRequest\x12J\x0A\x06parent\x18\x01 \x01(\x09B:\xE0A\x02\xFAA4\x122storage.googleapis.com/IntelligenceFindingRevision\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xA3\x01\x0A(ListIntelligenceFindingRevisionsResponse\x12^\x0A\x1Eintelligence_finding_revisions\x18\x01 \x03(\x0B26.google.storage.control.v2.IntelligenceFindingRevision\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xBA\x05\x0A\x0EFindingSummary\x129\x0A\x04type\x18\x01 \x01(\x0E2&.google.storage.control.v2.FindingTypeB\x03\xE0A\x03\x12A\x0A\x08category\x18\x02 \x01(\x0E2*.google.storage.control.v2.FindingCategoryB\x03\xE0A\x03\x12\x1C\x0A\x0Ftarget_resource\x18\x04 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12<\x0A\x08severity\x18\x07 \x01(\x0E2*.google.storage.control.v2.FindingSeverity\x12V\x0A\x0Fsummary_details\x18\x08 \x03(\x0B28.google.storage.control.v2.FindingSummary.SummaryDetailsB\x03\xE0A\x03\x1A\x89\x02\x0A\x0ESummaryDetails\x12\x0F\x0A\x05count\x18\x01 \x01(\x03H\x00\x12\x14\x0A\x0Apercentage\x18\x02 \x01(\x02H\x00\x12a\x0A\x0Dresource_type\x18\x03 \x01(\x0E2E.google.storage.control.v2.FindingSummary.SummaryDetails.ResourceTypeB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x03\"F\x0A\x0CResourceType\x12\x1D\x0A\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PROJECT\x10\x01\x12\x0A\x0A\x06BUCKET\x10\x02B\x0B\x0A\x09magnitude*\xEF\x01\x0A\x0BFindingType\x12\x1C\x0A\x18FINDING_TYPE_UNSPECIFIED\x10\x00\x12?\x0A;FINDING_TYPE_COLDLINE_AND_ARCHIVAL_STORAGE_OPERATIONS_SPIKE\x10\x01\x12(\x0A\$FINDING_TYPE_THROTTLED_REQUEST_SPIKE\x10\x02\x12*\x0A&FINDING_TYPE_CROSS_REGION_EGRESS_SPIKE\x10\x03\x12+\x0A'FINDING_TYPE_STORAGE_GROWTH_ABOVE_TREND\x10\x04*{\x0A\x0FFindingCategory\x12 \x0A\x1CFINDING_CATEGORY_UNSPECIFIED\x10\x00\x12\$\x0A FINDING_CATEGORY_DATA_MANAGEMENT\x10\x01\x12 \x0A\x1CFINDING_CATEGORY_PERFORMANCE\x10\x02*R\x0A\x0FFindingSeverity\x12 \x0A\x1CFINDING_SEVERITY_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19FINDING_SEVERITY_CRITICAL\x10\x012\xD5A\x0A\x0EStorageControl\x12\xD3\x01\x0A\x0CCreateFolder\x12..google.storage.control.v2.CreateFolderRequest\x1A!.google.storage.control.v2.Folder\"p\xDAA\x17parent,folder,folder_id\x82\xD3\xE4\x93\x023\")/v2/{parent=projects/*/buckets/*}/folders:\x06folder\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xC1\x01\x0A\x0CDeleteFolder\x12..google.storage.control.v2.DeleteFolderRequest\x1A\x16.google.protobuf.Empty\"i\xDAA\x04name\x82\xD3\xE4\x93\x02,**/v2/{name=projects/*/buckets/*/folders/**}\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xC6\x01\x0A\x09GetFolder\x12+.google.storage.control.v2.GetFolderRequest\x1A!.google.storage.control.v2.Folder\"i\xDAA\x04name\x82\xD3\xE4\x93\x02,\x12*/v2/{name=projects/*/buckets/*/folders/**}\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xC5\x01\x0A\x0BListFolders\x12-.google.storage.control.v2.ListFoldersRequest\x1A..google.storage.control.v2.ListFoldersResponse\"W\xDAA\x06parent\x82\xD3\xE4\x93\x02+\x12)/v2/{parent=projects/*/buckets/*}/folders\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\x8A\x02\x0A\x0CRenameFolder\x12..google.storage.control.v2.RenameFolderRequest\x1A\x1D.google.longrunning.Operation\"\xAA\x01\xCAA\x1E\x0A\x06Folder\x12\x14RenameFolderMetadata\xDAA\x1Aname,destination_folder_id\x82\xD3\xE4\x93\x026\"1/v2/{name=projects/*/buckets/*/folders/**}:rename:\x01*\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA7\x02\x0A\x15DeleteFolderRecursive\x127.google.storage.control.v2.DeleteFolderRecursiveRequest\x1A\x1D.google.longrunning.Operation\"\xB5\x01\xCAA6\x0A\x15google.protobuf.Empty\x12\x1DDeleteFolderRecursiveMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02?\":/v2/{name=projects/*/buckets/*/folders/**}:deleteRecursive:\x01*\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xDE\x01\x0A\x10GetStorageLayout\x122.google.storage.control.v2.GetStorageLayoutRequest\x1A(.google.storage.control.v2.StorageLayout\"l\xDAA\x04name\x82\xD3\xE4\x93\x02/\x12-/v2/{name=projects/*/buckets/*/storageLayout}\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xBF\x01\x0A\x13CreateManagedFolder\x125.google.storage.control.v2.CreateManagedFolderRequest\x1A(.google.storage.control.v2.ManagedFolder\"G\xDAA'parent,managed_folder,managed_folder_id\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\x9D\x01\x0A\x13DeleteManagedFolder\x125.google.storage.control.v2.DeleteManagedFolderRequest\x1A\x16.google.protobuf.Empty\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA9\x01\x0A\x10GetManagedFolder\x122.google.storage.control.v2.GetManagedFolderRequest\x1A(.google.storage.control.v2.ManagedFolder\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA9\x01\x0A\x12ListManagedFolders\x124.google.storage.control.v2.ListManagedFoldersRequest\x1A5.google.storage.control.v2.ListManagedFoldersResponse\"&\xDAA\x06parent\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xD4\x01\x0A\x13UpdateManagedFolder\x125.google.storage.control.v2.UpdateManagedFolderRequest\x1A(.google.storage.control.v2.ManagedFolder\"\\\xDAA\x1Amanaged_folder,update_mask\x8A\xD3\xE4\x93\x029\x127\x0A\x13managed_folder.name\x12 {bucket=projects/*/buckets/*}/**\x12\xD1\x01\x0A\x13CreateAnywhereCache\x125.google.storage.control.v2.CreateAnywhereCacheRequest\x1A\x1D.google.longrunning.Operation\"d\xCAA,\x0A\x0DAnywhereCache\x12\x1BCreateAnywhereCacheMetadata\xDAA\x15parent,anywhere_cache\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xF9\x01\x0A\x13UpdateAnywhereCache\x125.google.storage.control.v2.UpdateAnywhereCacheRequest\x1A\x1D.google.longrunning.Operation\"\x8B\x01\xCAA,\x0A\x0DAnywhereCache\x12\x1BUpdateAnywhereCacheMetadata\xDAA\x1Aanywhere_cache,update_mask\x8A\xD3\xE4\x93\x029\x127\x0A\x13anywhere_cache.name\x12 {bucket=projects/*/buckets/*}/**\x12\xB1\x01\x0A\x14DisableAnywhereCache\x126.google.storage.control.v2.DisableAnywhereCacheRequest\x1A(.google.storage.control.v2.AnywhereCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xAD\x01\x0A\x12PauseAnywhereCache\x124.google.storage.control.v2.PauseAnywhereCacheRequest\x1A(.google.storage.control.v2.AnywhereCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xAF\x01\x0A\x13ResumeAnywhereCache\x125.google.storage.control.v2.ResumeAnywhereCacheRequest\x1A(.google.storage.control.v2.AnywhereCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA9\x01\x0A\x10GetAnywhereCache\x122.google.storage.control.v2.GetAnywhereCacheRequest\x1A(.google.storage.control.v2.AnywhereCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA9\x01\x0A\x12ListAnywhereCaches\x124.google.storage.control.v2.ListAnywhereCachesRequest\x1A5.google.storage.control.v2.ListAnywhereCachesResponse\"&\xDAA\x06parent\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xC2\x01\x0A\x10CreateRapidCache\x122.google.storage.control.v2.CreateRapidCacheRequest\x1A\x1D.google.longrunning.Operation\"[\xCAA&\x0A\x0ARapidCache\x12\x18CreateRapidCacheMetadata\xDAA\x12parent,rapid_cache\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xE6\x01\x0A\x10UpdateRapidCache\x122.google.storage.control.v2.UpdateRapidCacheRequest\x1A\x1D.google.longrunning.Operation\"\x7F\xCAA&\x0A\x0ARapidCache\x12\x18UpdateRapidCacheMetadata\xDAA\x17rapid_cache,update_mask\x8A\xD3\xE4\x93\x026\x124\x0A\x10rapid_cache.name\x12 {bucket=projects/*/buckets/*}/**\x12\xA0\x01\x0A\x0DGetRapidCache\x12/.google.storage.control.v2.GetRapidCacheRequest\x1A%.google.storage.control.v2.RapidCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA0\x01\x0A\x0FListRapidCaches\x121.google.storage.control.v2.ListRapidCachesRequest\x1A2.google.storage.control.v2.ListRapidCachesResponse\"&\xDAA\x06parent\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xD2\x01\x0A\x1CGetProjectIntelligenceConfig\x12>.google.storage.control.v2.GetProjectIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"C\xDAA\x04name\x82\xD3\xE4\x93\x026\x124/v2/{name=projects/*/locations/*/intelligenceConfig}\x12\x9D\x02\x0A\x1FUpdateProjectIntelligenceConfig\x12A.google.storage.control.v2.UpdateProjectIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"\x87\x01\xDAA\x1Fintelligence_config,update_mask\x82\xD3\xE4\x93\x02_2H/v2/{intelligence_config.name=projects/*/locations/*/intelligenceConfig}:\x13intelligence_config\x12\xCF\x01\x0A\x1BGetFolderIntelligenceConfig\x12=.google.storage.control.v2.GetFolderIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"B\xDAA\x04name\x82\xD3\xE4\x93\x025\x123/v2/{name=folders/*/locations/*/intelligenceConfig}\x12\x9A\x02\x0A\x1EUpdateFolderIntelligenceConfig\x12@.google.storage.control.v2.UpdateFolderIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"\x86\x01\xDAA\x1Fintelligence_config,update_mask\x82\xD3\xE4\x93\x02^2G/v2/{intelligence_config.name=folders/*/locations/*/intelligenceConfig}:\x13intelligence_config\x12\xE1\x01\x0A!GetOrganizationIntelligenceConfig\x12C.google.storage.control.v2.GetOrganizationIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"H\xDAA\x04name\x82\xD3\xE4\x93\x02;\x129/v2/{name=organizations/*/locations/*/intelligenceConfig}\x12\xAC\x02\x0A\$UpdateOrganizationIntelligenceConfig\x12F.google.storage.control.v2.UpdateOrganizationIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"\x8C\x01\xDAA\x1Fintelligence_config,update_mask\x82\xD3\xE4\x93\x02d2M/v2/{intelligence_config.name=organizations/*/locations/*/intelligenceConfig}:\x13intelligence_config\x12\xA3\x01\x0A\x0CGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"X\xDAA\x08resource\x8A\xD3\xE4\x93\x02G\x12\x17\x0A\x08resource\x12\x0B{bucket=**}\x12,\x0A\x08resource\x12 {bucket=projects/*/buckets/*}/**\x12\xAA\x01\x0A\x0CSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"_\xDAA\x0Fresource,policy\x8A\xD3\xE4\x93\x02G\x12\x17\x0A\x08resource\x12\x0B{bucket=**}\x12,\x0A\x08resource\x12 {bucket=projects/*/buckets/*}/**\x12\x96\x02\x0A\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1A).google.iam.v1.TestIamPermissionsResponse\"\xAA\x01\xDAA\x14resource,permissions\x8A\xD3\xE4\x93\x02\x8C\x01\x12\x17\x0A\x08resource\x12\x0B{bucket=**}\x124\x0A\x08resource\x12({bucket=projects/*/buckets/*}/objects/**\x12;\x0A\x08resource\x12/{bucket=projects/*/buckets/*}/managedFolders/**\x12\xCB\x01\x0A\x16GetIntelligenceFinding\x128.google.storage.control.v2.GetIntelligenceFindingRequest\x1A..google.storage.control.v2.IntelligenceFinding\"G\xDAA\x04name\x82\xD3\xE4\x93\x02:\x128/v2/{name=projects/*/locations/*/intelligenceFindings/*}\x12\xDE\x01\x0A\x18ListIntelligenceFindings\x12:.google.storage.control.v2.ListIntelligenceFindingsRequest\x1A;.google.storage.control.v2.ListIntelligenceFindingsResponse\"I\xDAA\x06parent\x82\xD3\xE4\x93\x02:\x128/v2/{parent=projects/*/locations/*}/intelligenceFindings\x12\x89\x03\x0A\x1DSummarizeIntelligenceFindings\x12?.google.storage.control.v2.SummarizeIntelligenceFindingsRequest\x1A@.google.storage.control.v2.SummarizeIntelligenceFindingsResponse\"\xE4\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xD4\x01\x12B/v2/{parent=projects/*/locations/*}/intelligenceFindings:summarizeZC\x12A/v2/{parent=folders/*/locations/*}/intelligenceFindings:summarizeZI\x12G/v2/{parent=organizations/*/locations/*}/intelligenceFindings:summarize\x12\xEF\x01\x0A\x1EGetIntelligenceFindingRevision\x12@.google.storage.control.v2.GetIntelligenceFindingRevisionRequest\x1A6.google.storage.control.v2.IntelligenceFindingRevision\"S\xDAA\x04name\x82\xD3\xE4\x93\x02F\x12D/v2/{name=projects/*/locations/*/intelligenceFindings/*/revisions/*}\x12\x82\x02\x0A ListIntelligenceFindingRevisions\x12B.google.storage.control.v2.ListIntelligenceFindingRevisionsRequest\x1AC.google.storage.control.v2.ListIntelligenceFindingRevisionsResponse\"U\xDAA\x06parent\x82\xD3\xE4\x93\x02F\x12D/v2/{parent=projects/*/locations/*/intelligenceFindings/*}/revisions\x1A\xA7\x02\xCAA\x16storage.googleapis.com\xD2A\x8A\x02https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/devstorage.full_control,https://www.googleapis.com/auth/devstorage.read_only,https://www.googleapis.com/auth/devstorage.read_writeB\xA6\x02\x0A\x1Dcom.google.storage.control.v2B\x13StorageControlProtoP\x01Z=cloud.google.com/go/storage/control/apiv2/controlpb;controlpb\xAA\x02\x1FGoogle.Cloud.Storage.Control.V2\xCA\x02\x1FGoogle\\Cloud\\Storage\\Control\\V2\xEA\x02#Google::Cloud::Storage::Control::V2\xEAAD\x0A\x1Dstorage.googleapis.com/Bucket\x12#projects/{project}/buckets/{bucket}b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/AnywhereCache.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/AnywhereCache.php new file mode 100644 index 000000000000..8e3334704463 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/AnywhereCache.php @@ -0,0 +1,435 @@ +google.storage.control.v2.AnywhereCache + */ +class AnywhereCache extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. The resource name of this AnywhereCache. + * Format: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * Immutable. The zone in which the cache instance is running. For example, + * us-central1-a. + * + * Generated from protobuf field string zone = 10 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $zone = ''; + /** + * Cache entry TTL (ranges between 1h to 7d). This is a cache-level config + * that defines how long a cache entry can live. Default ttl value (24hrs) + * is applied if not specified in the create request. TTL must be in whole + * seconds. + * + * Generated from protobuf field .google.protobuf.Duration ttl = 3; + */ + protected $ttl = null; + /** + * Cache admission policy. Valid policies includes: + * `admit-on-first-miss` and `admit-on-second-miss`. Defaults to + * `admit-on-first-miss`. Default value is applied if not specified in the + * create request. + * + * Generated from protobuf field string admission_policy = 9; + */ + protected $admission_policy = ''; + /** + * Output only. Cache state including `running`, `creating`, `disabled` and + * `paused`. + * + * Generated from protobuf field string state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = ''; + /** + * Output only. Time when Anywhere cache instance is allocated. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time when Anywhere cache instance is last updated, including + * creation. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. True if there is an active update operation against this cache + * instance. Subsequential update requests will be rejected if this field is + * true. Output only. + * + * Generated from protobuf field bool pending_update = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $pending_update = false; + /** + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ingest_on_write = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Immutable. The resource name of this AnywhereCache. + * Format: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * @type string $zone + * Immutable. The zone in which the cache instance is running. For example, + * us-central1-a. + * @type \Google\Protobuf\Duration $ttl + * Cache entry TTL (ranges between 1h to 7d). This is a cache-level config + * that defines how long a cache entry can live. Default ttl value (24hrs) + * is applied if not specified in the create request. TTL must be in whole + * seconds. + * @type string $admission_policy + * Cache admission policy. Valid policies includes: + * `admit-on-first-miss` and `admit-on-second-miss`. Defaults to + * `admit-on-first-miss`. Default value is applied if not specified in the + * create request. + * @type string $state + * Output only. Cache state including `running`, `creating`, `disabled` and + * `paused`. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when Anywhere cache instance is allocated. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time when Anywhere cache instance is last updated, including + * creation. + * @type bool $pending_update + * Output only. True if there is an active update operation against this cache + * instance. Subsequential update requests will be rejected if this field is + * true. Output only. + * @type bool $ingest_on_write + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. The resource name of this AnywhereCache. + * Format: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Immutable. The resource name of this AnywhereCache. + * Format: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. The zone in which the cache instance is running. For example, + * us-central1-a. + * + * Generated from protobuf field string zone = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getZone() + { + return $this->zone; + } + + /** + * Immutable. The zone in which the cache instance is running. For example, + * us-central1-a. + * + * Generated from protobuf field string zone = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setZone($var) + { + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Cache entry TTL (ranges between 1h to 7d). This is a cache-level config + * that defines how long a cache entry can live. Default ttl value (24hrs) + * is applied if not specified in the create request. TTL must be in whole + * seconds. + * + * Generated from protobuf field .google.protobuf.Duration ttl = 3; + * @return \Google\Protobuf\Duration|null + */ + public function getTtl() + { + return $this->ttl; + } + + public function hasTtl() + { + return isset($this->ttl); + } + + public function clearTtl() + { + unset($this->ttl); + } + + /** + * Cache entry TTL (ranges between 1h to 7d). This is a cache-level config + * that defines how long a cache entry can live. Default ttl value (24hrs) + * is applied if not specified in the create request. TTL must be in whole + * seconds. + * + * Generated from protobuf field .google.protobuf.Duration ttl = 3; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setTtl($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->ttl = $var; + + return $this; + } + + /** + * Cache admission policy. Valid policies includes: + * `admit-on-first-miss` and `admit-on-second-miss`. Defaults to + * `admit-on-first-miss`. Default value is applied if not specified in the + * create request. + * + * Generated from protobuf field string admission_policy = 9; + * @return string + */ + public function getAdmissionPolicy() + { + return $this->admission_policy; + } + + /** + * Cache admission policy. Valid policies includes: + * `admit-on-first-miss` and `admit-on-second-miss`. Defaults to + * `admit-on-first-miss`. Default value is applied if not specified in the + * create request. + * + * Generated from protobuf field string admission_policy = 9; + * @param string $var + * @return $this + */ + public function setAdmissionPolicy($var) + { + GPBUtil::checkString($var, True); + $this->admission_policy = $var; + + return $this; + } + + /** + * Output only. Cache state including `running`, `creating`, `disabled` and + * `paused`. + * + * Generated from protobuf field string state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Cache state including `running`, `creating`, `disabled` and + * `paused`. + * + * Generated from protobuf field string state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkString($var, True); + $this->state = $var; + + return $this; + } + + /** + * Output only. Time when Anywhere cache instance is allocated. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when Anywhere cache instance is allocated. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time when Anywhere cache instance is last updated, including + * creation. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time when Anywhere cache instance is last updated, including + * creation. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. True if there is an active update operation against this cache + * instance. Subsequential update requests will be rejected if this field is + * true. Output only. + * + * Generated from protobuf field bool pending_update = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getPendingUpdate() + { + return $this->pending_update; + } + + /** + * Output only. True if there is an active update operation against this cache + * instance. Subsequential update requests will be rejected if this field is + * true. Output only. + * + * Generated from protobuf field bool pending_update = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setPendingUpdate($var) + { + GPBUtil::checkBool($var); + $this->pending_update = $var; + + return $this; + } + + /** + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIngestOnWrite() + { + return isset($this->ingest_on_write) ? $this->ingest_on_write : false; + } + + public function hasIngestOnWrite() + { + return isset($this->ingest_on_write); + } + + public function clearIngestOnWrite() + { + unset($this->ingest_on_write); + } + + /** + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIngestOnWrite($var) + { + GPBUtil::checkBool($var); + $this->ingest_on_write = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CommonLongRunningOperationMetadata.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CommonLongRunningOperationMetadata.php new file mode 100644 index 000000000000..02c9517f2d7d --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CommonLongRunningOperationMetadata.php @@ -0,0 +1,273 @@ +google.storage.control.v2.CommonLongRunningOperationMetadata + */ +class CommonLongRunningOperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. The time the operation was last modified. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. The type of operation invoked. + * + * Generated from protobuf field string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $type = ''; + /** + * Output only. Identifies whether the user has requested cancellation. + * + * Generated from protobuf field bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $requested_cancellation = false; + /** + * Output only. The estimated progress of the operation in percentage [0, + * 100]. The value -1 means the progress is unknown. + * + * Generated from protobuf field int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $progress_percent = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time the operation was created. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time the operation was last modified. + * @type string $type + * Output only. The type of operation invoked. + * @type bool $requested_cancellation + * Output only. Identifies whether the user has requested cancellation. + * @type int $progress_percent + * Output only. The estimated progress of the operation in percentage [0, + * 100]. The value -1 means the progress is unknown. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. The time the operation was last modified. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time the operation was last modified. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. The type of operation invoked. + * + * Generated from protobuf field string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Output only. The type of operation invoked. + * + * Generated from protobuf field string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Output only. Identifies whether the user has requested cancellation. + * + * Generated from protobuf field bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getRequestedCancellation() + { + return $this->requested_cancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation. + * + * Generated from protobuf field bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setRequestedCancellation($var) + { + GPBUtil::checkBool($var); + $this->requested_cancellation = $var; + + return $this; + } + + /** + * Output only. The estimated progress of the operation in percentage [0, + * 100]. The value -1 means the progress is unknown. + * + * Generated from protobuf field int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getProgressPercent() + { + return $this->progress_percent; + } + + /** + * Output only. The estimated progress of the operation in percentage [0, + * 100]. The value -1 means the progress is unknown. + * + * Generated from protobuf field int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setProgressPercent($var) + { + GPBUtil::checkInt32($var); + $this->progress_percent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateAnywhereCacheMetadata.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateAnywhereCacheMetadata.php new file mode 100644 index 000000000000..e821b04e5914 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateAnywhereCacheMetadata.php @@ -0,0 +1,322 @@ +google.storage.control.v2.CreateAnywhereCacheMetadata + */ +class CreateAnywhereCacheMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Generic metadata for the long running operation. + * + * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + */ + protected $common_metadata = null; + /** + * Anywhere Cache ID. + * + * Generated from protobuf field optional string anywhere_cache_id = 2; + */ + protected $anywhere_cache_id = null; + /** + * The zone in which the cache instance is running. For example, + * us-central1-a. + * + * Generated from protobuf field optional string zone = 6; + */ + protected $zone = null; + /** + * Anywhere Cache entry's TTL. A cache-level config that is applied to all new + * cache entries on admission. Default ttl value (24hrs) is applied if not + * specified in the create request. + * + * Generated from protobuf field optional .google.protobuf.Duration ttl = 3; + */ + protected $ttl = null; + /** + * Anywhere Cache entry Admission Policy in kebab-case (e.g., + * "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is + * applied if not specified in the create request. + * + * Generated from protobuf field optional string admission_policy = 5; + */ + protected $admission_policy = null; + /** + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ingest_on_write = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $common_metadata + * Generic metadata for the long running operation. + * @type string $anywhere_cache_id + * Anywhere Cache ID. + * @type string $zone + * The zone in which the cache instance is running. For example, + * us-central1-a. + * @type \Google\Protobuf\Duration $ttl + * Anywhere Cache entry's TTL. A cache-level config that is applied to all new + * cache entries on admission. Default ttl value (24hrs) is applied if not + * specified in the create request. + * @type string $admission_policy + * Anywhere Cache entry Admission Policy in kebab-case (e.g., + * "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is + * applied if not specified in the create request. + * @type bool $ingest_on_write + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Generic metadata for the long running operation. + * + * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * @return \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata|null + */ + public function getCommonMetadata() + { + return $this->common_metadata; + } + + public function hasCommonMetadata() + { + return isset($this->common_metadata); + } + + public function clearCommonMetadata() + { + unset($this->common_metadata); + } + + /** + * Generic metadata for the long running operation. + * + * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * @param \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $var + * @return $this + */ + public function setCommonMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata::class); + $this->common_metadata = $var; + + return $this; + } + + /** + * Anywhere Cache ID. + * + * Generated from protobuf field optional string anywhere_cache_id = 2; + * @return string + */ + public function getAnywhereCacheId() + { + return isset($this->anywhere_cache_id) ? $this->anywhere_cache_id : ''; + } + + public function hasAnywhereCacheId() + { + return isset($this->anywhere_cache_id); + } + + public function clearAnywhereCacheId() + { + unset($this->anywhere_cache_id); + } + + /** + * Anywhere Cache ID. + * + * Generated from protobuf field optional string anywhere_cache_id = 2; + * @param string $var + * @return $this + */ + public function setAnywhereCacheId($var) + { + GPBUtil::checkString($var, True); + $this->anywhere_cache_id = $var; + + return $this; + } + + /** + * The zone in which the cache instance is running. For example, + * us-central1-a. + * + * Generated from protobuf field optional string zone = 6; + * @return string + */ + public function getZone() + { + return isset($this->zone) ? $this->zone : ''; + } + + public function hasZone() + { + return isset($this->zone); + } + + public function clearZone() + { + unset($this->zone); + } + + /** + * The zone in which the cache instance is running. For example, + * us-central1-a. + * + * Generated from protobuf field optional string zone = 6; + * @param string $var + * @return $this + */ + public function setZone($var) + { + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Anywhere Cache entry's TTL. A cache-level config that is applied to all new + * cache entries on admission. Default ttl value (24hrs) is applied if not + * specified in the create request. + * + * Generated from protobuf field optional .google.protobuf.Duration ttl = 3; + * @return \Google\Protobuf\Duration|null + */ + public function getTtl() + { + return $this->ttl; + } + + public function hasTtl() + { + return isset($this->ttl); + } + + public function clearTtl() + { + unset($this->ttl); + } + + /** + * Anywhere Cache entry's TTL. A cache-level config that is applied to all new + * cache entries on admission. Default ttl value (24hrs) is applied if not + * specified in the create request. + * + * Generated from protobuf field optional .google.protobuf.Duration ttl = 3; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setTtl($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->ttl = $var; + + return $this; + } + + /** + * Anywhere Cache entry Admission Policy in kebab-case (e.g., + * "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is + * applied if not specified in the create request. + * + * Generated from protobuf field optional string admission_policy = 5; + * @return string + */ + public function getAdmissionPolicy() + { + return isset($this->admission_policy) ? $this->admission_policy : ''; + } + + public function hasAdmissionPolicy() + { + return isset($this->admission_policy); + } + + public function clearAdmissionPolicy() + { + unset($this->admission_policy); + } + + /** + * Anywhere Cache entry Admission Policy in kebab-case (e.g., + * "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is + * applied if not specified in the create request. + * + * Generated from protobuf field optional string admission_policy = 5; + * @param string $var + * @return $this + */ + public function setAdmissionPolicy($var) + { + GPBUtil::checkString($var, True); + $this->admission_policy = $var; + + return $this; + } + + /** + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIngestOnWrite() + { + return isset($this->ingest_on_write) ? $this->ingest_on_write : false; + } + + public function hasIngestOnWrite() + { + return isset($this->ingest_on_write); + } + + public function clearIngestOnWrite() + { + unset($this->ingest_on_write); + } + + /** + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIngestOnWrite($var) + { + GPBUtil::checkBool($var); + $this->ingest_on_write = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateAnywhereCacheRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateAnywhereCacheRequest.php new file mode 100644 index 000000000000..2355a5e824a7 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateAnywhereCacheRequest.php @@ -0,0 +1,189 @@ +google.storage.control.v2.CreateAnywhereCacheRequest + */ +class CreateAnywhereCacheRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The bucket to which this cache belongs. + * Format: `projects/{project}/buckets/{bucket}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Properties of the Anywhere Cache instance being created. + * The parent bucket name is specified in the `parent` field. Server uses the + * default value of `ttl` or `admission_policy` if not specified in + * request. + * + * Generated from protobuf field .google.storage.control.v2.AnywhereCache anywhere_cache = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $anywhere_cache = null; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $parent Required. The bucket to which this cache belongs. + * Format: `projects/{project}/buckets/{bucket}` + * Please see {@see StorageControlClient::bucketName()} for help formatting this field. + * @param \Google\Cloud\Storage\Control\V2\AnywhereCache $anywhereCache Required. Properties of the Anywhere Cache instance being created. + * The parent bucket name is specified in the `parent` field. Server uses the + * default value of `ttl` or `admission_policy` if not specified in + * request. + * + * @return \Google\Cloud\Storage\Control\V2\CreateAnywhereCacheRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Storage\Control\V2\AnywhereCache $anywhereCache): self + { + return (new self()) + ->setParent($parent) + ->setAnywhereCache($anywhereCache); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The bucket to which this cache belongs. + * Format: `projects/{project}/buckets/{bucket}` + * @type \Google\Cloud\Storage\Control\V2\AnywhereCache $anywhere_cache + * Required. Properties of the Anywhere Cache instance being created. + * The parent bucket name is specified in the `parent` field. Server uses the + * default value of `ttl` or `admission_policy` if not specified in + * request. + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The bucket to which this cache belongs. + * Format: `projects/{project}/buckets/{bucket}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The bucket to which this cache belongs. + * Format: `projects/{project}/buckets/{bucket}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Properties of the Anywhere Cache instance being created. + * The parent bucket name is specified in the `parent` field. Server uses the + * default value of `ttl` or `admission_policy` if not specified in + * request. + * + * Generated from protobuf field .google.storage.control.v2.AnywhereCache anywhere_cache = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Storage\Control\V2\AnywhereCache|null + */ + public function getAnywhereCache() + { + return $this->anywhere_cache; + } + + public function hasAnywhereCache() + { + return isset($this->anywhere_cache); + } + + public function clearAnywhereCache() + { + unset($this->anywhere_cache); + } + + /** + * Required. Properties of the Anywhere Cache instance being created. + * The parent bucket name is specified in the `parent` field. Server uses the + * default value of `ttl` or `admission_policy` if not specified in + * request. + * + * Generated from protobuf field .google.storage.control.v2.AnywhereCache anywhere_cache = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Storage\Control\V2\AnywhereCache $var + * @return $this + */ + public function setAnywhereCache($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\AnywhereCache::class); + $this->anywhere_cache = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateFolderRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateFolderRequest.php new file mode 100644 index 000000000000..54f201c3a8fe --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateFolderRequest.php @@ -0,0 +1,280 @@ +google.storage.control.v2.CreateFolderRequest + */ +class CreateFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the bucket in which the folder will reside. The bucket + * must be a hierarchical namespace enabled bucket. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Properties of the new folder being created. + * The bucket and name of the folder are specified in the parent and folder_id + * fields, respectively. Populating those fields in `folder` will result in an + * error. + * + * Generated from protobuf field .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $folder = null; + /** + * Required. The full name of a folder, including all its parent folders. + * Folders use single '/' characters as a delimiter. + * The folder_id must end with a slash. + * For example, the folder_id of "books/biographies/" would create a new + * "biographies/" folder under the "books/" folder. + * + * Generated from protobuf field string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $folder_id = ''; + /** + * Optional. If true, parent folder doesn't have to be present and all missing + * ancestor folders will be created atomically. + * + * Generated from protobuf field bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $recursive = false; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $parent Required. Name of the bucket in which the folder will reside. The bucket + * must be a hierarchical namespace enabled bucket. Please see + * {@see StorageControlClient::bucketName()} for help formatting this field. + * @param \Google\Cloud\Storage\Control\V2\Folder $folder Required. Properties of the new folder being created. + * The bucket and name of the folder are specified in the parent and folder_id + * fields, respectively. Populating those fields in `folder` will result in an + * error. + * @param string $folderId Required. The full name of a folder, including all its parent folders. + * Folders use single '/' characters as a delimiter. + * The folder_id must end with a slash. + * For example, the folder_id of "books/biographies/" would create a new + * "biographies/" folder under the "books/" folder. + * + * @return \Google\Cloud\Storage\Control\V2\CreateFolderRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Storage\Control\V2\Folder $folder, string $folderId): self + { + return (new self()) + ->setParent($parent) + ->setFolder($folder) + ->setFolderId($folderId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Name of the bucket in which the folder will reside. The bucket + * must be a hierarchical namespace enabled bucket. + * @type \Google\Cloud\Storage\Control\V2\Folder $folder + * Required. Properties of the new folder being created. + * The bucket and name of the folder are specified in the parent and folder_id + * fields, respectively. Populating those fields in `folder` will result in an + * error. + * @type string $folder_id + * Required. The full name of a folder, including all its parent folders. + * Folders use single '/' characters as a delimiter. + * The folder_id must end with a slash. + * For example, the folder_id of "books/biographies/" would create a new + * "biographies/" folder under the "books/" folder. + * @type bool $recursive + * Optional. If true, parent folder doesn't have to be present and all missing + * ancestor folders will be created atomically. + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the bucket in which the folder will reside. The bucket + * must be a hierarchical namespace enabled bucket. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Name of the bucket in which the folder will reside. The bucket + * must be a hierarchical namespace enabled bucket. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Properties of the new folder being created. + * The bucket and name of the folder are specified in the parent and folder_id + * fields, respectively. Populating those fields in `folder` will result in an + * error. + * + * Generated from protobuf field .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Storage\Control\V2\Folder|null + */ + public function getFolder() + { + return $this->folder; + } + + public function hasFolder() + { + return isset($this->folder); + } + + public function clearFolder() + { + unset($this->folder); + } + + /** + * Required. Properties of the new folder being created. + * The bucket and name of the folder are specified in the parent and folder_id + * fields, respectively. Populating those fields in `folder` will result in an + * error. + * + * Generated from protobuf field .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Storage\Control\V2\Folder $var + * @return $this + */ + public function setFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\Folder::class); + $this->folder = $var; + + return $this; + } + + /** + * Required. The full name of a folder, including all its parent folders. + * Folders use single '/' characters as a delimiter. + * The folder_id must end with a slash. + * For example, the folder_id of "books/biographies/" would create a new + * "biographies/" folder under the "books/" folder. + * + * Generated from protobuf field string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFolderId() + { + return $this->folder_id; + } + + /** + * Required. The full name of a folder, including all its parent folders. + * Folders use single '/' characters as a delimiter. + * The folder_id must end with a slash. + * For example, the folder_id of "books/biographies/" would create a new + * "biographies/" folder under the "books/" folder. + * + * Generated from protobuf field string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFolderId($var) + { + GPBUtil::checkString($var, True); + $this->folder_id = $var; + + return $this; + } + + /** + * Optional. If true, parent folder doesn't have to be present and all missing + * ancestor folders will be created atomically. + * + * Generated from protobuf field bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getRecursive() + { + return $this->recursive; + } + + /** + * Optional. If true, parent folder doesn't have to be present and all missing + * ancestor folders will be created atomically. + * + * Generated from protobuf field bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setRecursive($var) + { + GPBUtil::checkBool($var); + $this->recursive = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateManagedFolderRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateManagedFolderRequest.php new file mode 100644 index 000000000000..7ea633ae338a --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateManagedFolderRequest.php @@ -0,0 +1,221 @@ +google.storage.control.v2.CreateManagedFolderRequest + */ +class CreateManagedFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the bucket this managed folder belongs to. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Properties of the managed folder being created. + * The bucket and managed folder names are specified in the `parent` and + * `managed_folder_id` fields. Populating these fields in `managed_folder` + * will result in an error. + * + * Generated from protobuf field .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $managed_folder = null; + /** + * Required. The name of the managed folder. It uses a single `/` as delimiter + * and leading and trailing `/` are allowed. + * + * Generated from protobuf field string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $managed_folder_id = ''; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $parent Required. Name of the bucket this managed folder belongs to. Please see + * {@see StorageControlClient::bucketName()} for help formatting this field. + * @param \Google\Cloud\Storage\Control\V2\ManagedFolder $managedFolder Required. Properties of the managed folder being created. + * The bucket and managed folder names are specified in the `parent` and + * `managed_folder_id` fields. Populating these fields in `managed_folder` + * will result in an error. + * @param string $managedFolderId Required. The name of the managed folder. It uses a single `/` as delimiter + * and leading and trailing `/` are allowed. + * + * @return \Google\Cloud\Storage\Control\V2\CreateManagedFolderRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Storage\Control\V2\ManagedFolder $managedFolder, string $managedFolderId): self + { + return (new self()) + ->setParent($parent) + ->setManagedFolder($managedFolder) + ->setManagedFolderId($managedFolderId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Name of the bucket this managed folder belongs to. + * @type \Google\Cloud\Storage\Control\V2\ManagedFolder $managed_folder + * Required. Properties of the managed folder being created. + * The bucket and managed folder names are specified in the `parent` and + * `managed_folder_id` fields. Populating these fields in `managed_folder` + * will result in an error. + * @type string $managed_folder_id + * Required. The name of the managed folder. It uses a single `/` as delimiter + * and leading and trailing `/` are allowed. + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the bucket this managed folder belongs to. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Name of the bucket this managed folder belongs to. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Properties of the managed folder being created. + * The bucket and managed folder names are specified in the `parent` and + * `managed_folder_id` fields. Populating these fields in `managed_folder` + * will result in an error. + * + * Generated from protobuf field .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Storage\Control\V2\ManagedFolder|null + */ + public function getManagedFolder() + { + return $this->managed_folder; + } + + public function hasManagedFolder() + { + return isset($this->managed_folder); + } + + public function clearManagedFolder() + { + unset($this->managed_folder); + } + + /** + * Required. Properties of the managed folder being created. + * The bucket and managed folder names are specified in the `parent` and + * `managed_folder_id` fields. Populating these fields in `managed_folder` + * will result in an error. + * + * Generated from protobuf field .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Storage\Control\V2\ManagedFolder $var + * @return $this + */ + public function setManagedFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\ManagedFolder::class); + $this->managed_folder = $var; + + return $this; + } + + /** + * Required. The name of the managed folder. It uses a single `/` as delimiter + * and leading and trailing `/` are allowed. + * + * Generated from protobuf field string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getManagedFolderId() + { + return $this->managed_folder_id; + } + + /** + * Required. The name of the managed folder. It uses a single `/` as delimiter + * and leading and trailing `/` are allowed. + * + * Generated from protobuf field string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setManagedFolderId($var) + { + GPBUtil::checkString($var, True); + $this->managed_folder_id = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateRapidCacheMetadata.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateRapidCacheMetadata.php new file mode 100644 index 000000000000..78d2ef7c8b86 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateRapidCacheMetadata.php @@ -0,0 +1,366 @@ +google.storage.control.v2.CreateRapidCacheMetadata + */ +class CreateRapidCacheMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Generic metadata for the long running operation. + * + * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + */ + protected $common_metadata = null; + /** + * Rapid Cache ID. + * + * Generated from protobuf field optional string rapid_cache_id = 2; + */ + protected $rapid_cache_id = null; + /** + * The zone in which the cache instance is running. For example, + * us-central1-a. + * + * Generated from protobuf field optional string zone = 3; + */ + protected $zone = null; + /** + * Rapid Cache entry's TTL. A cache-level config that is applied to all new + * cache entries on admission. Default ttl value (24hrs) is applied if not + * specified in the create request. + * + * Generated from protobuf field optional .google.protobuf.Duration ttl = 4; + */ + protected $ttl = null; + /** + * Anywhere Cache entry Admission Policy in kebab-case (e.g., + * "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is + * applied if not specified in the create request. + * + * Generated from protobuf field optional string admission_policy = 5; + */ + protected $admission_policy = null; + /** + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ingest_on_write = null; + /** + * Optional. The type of cache. Either rapid cache or rapid cache ultra. + * + * Generated from protobuf field optional string cache_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $cache_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $common_metadata + * Generic metadata for the long running operation. + * @type string $rapid_cache_id + * Rapid Cache ID. + * @type string $zone + * The zone in which the cache instance is running. For example, + * us-central1-a. + * @type \Google\Protobuf\Duration $ttl + * Rapid Cache entry's TTL. A cache-level config that is applied to all new + * cache entries on admission. Default ttl value (24hrs) is applied if not + * specified in the create request. + * @type string $admission_policy + * Anywhere Cache entry Admission Policy in kebab-case (e.g., + * "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is + * applied if not specified in the create request. + * @type bool $ingest_on_write + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. + * @type string $cache_type + * Optional. The type of cache. Either rapid cache or rapid cache ultra. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Generic metadata for the long running operation. + * + * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * @return \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata|null + */ + public function getCommonMetadata() + { + return $this->common_metadata; + } + + public function hasCommonMetadata() + { + return isset($this->common_metadata); + } + + public function clearCommonMetadata() + { + unset($this->common_metadata); + } + + /** + * Generic metadata for the long running operation. + * + * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * @param \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $var + * @return $this + */ + public function setCommonMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata::class); + $this->common_metadata = $var; + + return $this; + } + + /** + * Rapid Cache ID. + * + * Generated from protobuf field optional string rapid_cache_id = 2; + * @return string + */ + public function getRapidCacheId() + { + return isset($this->rapid_cache_id) ? $this->rapid_cache_id : ''; + } + + public function hasRapidCacheId() + { + return isset($this->rapid_cache_id); + } + + public function clearRapidCacheId() + { + unset($this->rapid_cache_id); + } + + /** + * Rapid Cache ID. + * + * Generated from protobuf field optional string rapid_cache_id = 2; + * @param string $var + * @return $this + */ + public function setRapidCacheId($var) + { + GPBUtil::checkString($var, True); + $this->rapid_cache_id = $var; + + return $this; + } + + /** + * The zone in which the cache instance is running. For example, + * us-central1-a. + * + * Generated from protobuf field optional string zone = 3; + * @return string + */ + public function getZone() + { + return isset($this->zone) ? $this->zone : ''; + } + + public function hasZone() + { + return isset($this->zone); + } + + public function clearZone() + { + unset($this->zone); + } + + /** + * The zone in which the cache instance is running. For example, + * us-central1-a. + * + * Generated from protobuf field optional string zone = 3; + * @param string $var + * @return $this + */ + public function setZone($var) + { + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Rapid Cache entry's TTL. A cache-level config that is applied to all new + * cache entries on admission. Default ttl value (24hrs) is applied if not + * specified in the create request. + * + * Generated from protobuf field optional .google.protobuf.Duration ttl = 4; + * @return \Google\Protobuf\Duration|null + */ + public function getTtl() + { + return $this->ttl; + } + + public function hasTtl() + { + return isset($this->ttl); + } + + public function clearTtl() + { + unset($this->ttl); + } + + /** + * Rapid Cache entry's TTL. A cache-level config that is applied to all new + * cache entries on admission. Default ttl value (24hrs) is applied if not + * specified in the create request. + * + * Generated from protobuf field optional .google.protobuf.Duration ttl = 4; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setTtl($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->ttl = $var; + + return $this; + } + + /** + * Anywhere Cache entry Admission Policy in kebab-case (e.g., + * "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is + * applied if not specified in the create request. + * + * Generated from protobuf field optional string admission_policy = 5; + * @return string + */ + public function getAdmissionPolicy() + { + return isset($this->admission_policy) ? $this->admission_policy : ''; + } + + public function hasAdmissionPolicy() + { + return isset($this->admission_policy); + } + + public function clearAdmissionPolicy() + { + unset($this->admission_policy); + } + + /** + * Anywhere Cache entry Admission Policy in kebab-case (e.g., + * "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is + * applied if not specified in the create request. + * + * Generated from protobuf field optional string admission_policy = 5; + * @param string $var + * @return $this + */ + public function setAdmissionPolicy($var) + { + GPBUtil::checkString($var, True); + $this->admission_policy = $var; + + return $this; + } + + /** + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIngestOnWrite() + { + return isset($this->ingest_on_write) ? $this->ingest_on_write : false; + } + + public function hasIngestOnWrite() + { + return isset($this->ingest_on_write); + } + + public function clearIngestOnWrite() + { + unset($this->ingest_on_write); + } + + /** + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIngestOnWrite($var) + { + GPBUtil::checkBool($var); + $this->ingest_on_write = $var; + + return $this; + } + + /** + * Optional. The type of cache. Either rapid cache or rapid cache ultra. + * + * Generated from protobuf field optional string cache_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCacheType() + { + return isset($this->cache_type) ? $this->cache_type : ''; + } + + public function hasCacheType() + { + return isset($this->cache_type); + } + + public function clearCacheType() + { + unset($this->cache_type); + } + + /** + * Optional. The type of cache. Either rapid cache or rapid cache ultra. + * + * Generated from protobuf field optional string cache_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCacheType($var) + { + GPBUtil::checkString($var, True); + $this->cache_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateRapidCacheRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateRapidCacheRequest.php new file mode 100644 index 000000000000..e0ab8ea22158 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateRapidCacheRequest.php @@ -0,0 +1,179 @@ +google.storage.control.v2.CreateRapidCacheRequest + */ +class CreateRapidCacheRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The bucket to which this cache belongs. + * Format: `projects/{project}/buckets/{bucket}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The RapidCache to create. Default values for ingest_on_write, ttl + * and admission_policy will be applied if not specified in the request. + * + * Generated from protobuf field .google.storage.control.v2.RapidCache rapid_cache = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $rapid_cache = null; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $parent Required. The bucket to which this cache belongs. + * Format: `projects/{project}/buckets/{bucket}` + * Please see {@see StorageControlClient::bucketName()} for help formatting this field. + * @param \Google\Cloud\Storage\Control\V2\RapidCache $rapidCache Required. The RapidCache to create. Default values for ingest_on_write, ttl + * and admission_policy will be applied if not specified in the request. + * + * @return \Google\Cloud\Storage\Control\V2\CreateRapidCacheRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Storage\Control\V2\RapidCache $rapidCache): self + { + return (new self()) + ->setParent($parent) + ->setRapidCache($rapidCache); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The bucket to which this cache belongs. + * Format: `projects/{project}/buckets/{bucket}` + * @type \Google\Cloud\Storage\Control\V2\RapidCache $rapid_cache + * Required. The RapidCache to create. Default values for ingest_on_write, ttl + * and admission_policy will be applied if not specified in the request. + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The bucket to which this cache belongs. + * Format: `projects/{project}/buckets/{bucket}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The bucket to which this cache belongs. + * Format: `projects/{project}/buckets/{bucket}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The RapidCache to create. Default values for ingest_on_write, ttl + * and admission_policy will be applied if not specified in the request. + * + * Generated from protobuf field .google.storage.control.v2.RapidCache rapid_cache = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Storage\Control\V2\RapidCache|null + */ + public function getRapidCache() + { + return $this->rapid_cache; + } + + public function hasRapidCache() + { + return isset($this->rapid_cache); + } + + public function clearRapidCache() + { + unset($this->rapid_cache); + } + + /** + * Required. The RapidCache to create. Default values for ingest_on_write, ttl + * and admission_policy will be applied if not specified in the request. + * + * Generated from protobuf field .google.storage.control.v2.RapidCache rapid_cache = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Storage\Control\V2\RapidCache $var + * @return $this + */ + public function setRapidCache($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\RapidCache::class); + $this->rapid_cache = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRecursiveMetadata.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRecursiveMetadata.php new file mode 100644 index 000000000000..c92704c379bc --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRecursiveMetadata.php @@ -0,0 +1,112 @@ +google.storage.control.v2.DeleteFolderRecursiveMetadata + */ +class DeleteFolderRecursiveMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Generic metadata for the long running operation. + * + * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + */ + protected $common_metadata = null; + /** + * The path of the folder recursively deleted. + * + * Generated from protobuf field string folder_id = 2; + */ + protected $folder_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $common_metadata + * Generic metadata for the long running operation. + * @type string $folder_id + * The path of the folder recursively deleted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Generic metadata for the long running operation. + * + * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * @return \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata|null + */ + public function getCommonMetadata() + { + return $this->common_metadata; + } + + public function hasCommonMetadata() + { + return isset($this->common_metadata); + } + + public function clearCommonMetadata() + { + unset($this->common_metadata); + } + + /** + * Generic metadata for the long running operation. + * + * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * @param \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $var + * @return $this + */ + public function setCommonMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata::class); + $this->common_metadata = $var; + + return $this; + } + + /** + * The path of the folder recursively deleted. + * + * Generated from protobuf field string folder_id = 2; + * @return string + */ + public function getFolderId() + { + return $this->folder_id; + } + + /** + * The path of the folder recursively deleted. + * + * Generated from protobuf field string folder_id = 2; + * @param string $var + * @return $this + */ + public function setFolderId($var) + { + GPBUtil::checkString($var, True); + $this->folder_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRecursiveRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRecursiveRequest.php new file mode 100644 index 000000000000..e39524b0c001 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRecursiveRequest.php @@ -0,0 +1,225 @@ +google.storage.control.v2.DeleteFolderRecursiveRequest + */ +class DeleteFolderRecursiveRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the folder being deleted, however all of its contents + * will be deleted too. Format: + * `projects/{project}/buckets/{bucket}/folders/{folder}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. Makes the operation only succeed conditional on whether the root + * folder's current metageneration matches the given value. + * + * Generated from protobuf field optional int64 if_metageneration_match = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $if_metageneration_match = null; + /** + * Optional. Makes the operation only succeed conditional on whether the root + * folder's current metageneration does not match the given value. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $if_metageneration_not_match = null; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $name Required. Name of the folder being deleted, however all of its contents + * will be deleted too. Format: + * `projects/{project}/buckets/{bucket}/folders/{folder}` + * Please see {@see StorageControlClient::folderName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\DeleteFolderRecursiveRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the folder being deleted, however all of its contents + * will be deleted too. Format: + * `projects/{project}/buckets/{bucket}/folders/{folder}` + * @type int|string $if_metageneration_match + * Optional. Makes the operation only succeed conditional on whether the root + * folder's current metageneration matches the given value. + * @type int|string $if_metageneration_not_match + * Optional. Makes the operation only succeed conditional on whether the root + * folder's current metageneration does not match the given value. + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the folder being deleted, however all of its contents + * will be deleted too. Format: + * `projects/{project}/buckets/{bucket}/folders/{folder}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the folder being deleted, however all of its contents + * will be deleted too. Format: + * `projects/{project}/buckets/{bucket}/folders/{folder}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. Makes the operation only succeed conditional on whether the root + * folder's current metageneration matches the given value. + * + * Generated from protobuf field optional int64 if_metageneration_match = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getIfMetagenerationMatch() + { + return isset($this->if_metageneration_match) ? $this->if_metageneration_match : 0; + } + + public function hasIfMetagenerationMatch() + { + return isset($this->if_metageneration_match); + } + + public function clearIfMetagenerationMatch() + { + unset($this->if_metageneration_match); + } + + /** + * Optional. Makes the operation only succeed conditional on whether the root + * folder's current metageneration matches the given value. + * + * Generated from protobuf field optional int64 if_metageneration_match = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setIfMetagenerationMatch($var) + { + GPBUtil::checkInt64($var); + $this->if_metageneration_match = $var; + + return $this; + } + + /** + * Optional. Makes the operation only succeed conditional on whether the root + * folder's current metageneration does not match the given value. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getIfMetagenerationNotMatch() + { + return isset($this->if_metageneration_not_match) ? $this->if_metageneration_not_match : 0; + } + + public function hasIfMetagenerationNotMatch() + { + return isset($this->if_metageneration_not_match); + } + + public function clearIfMetagenerationNotMatch() + { + unset($this->if_metageneration_not_match); + } + + /** + * Optional. Makes the operation only succeed conditional on whether the root + * folder's current metageneration does not match the given value. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setIfMetagenerationNotMatch($var) + { + GPBUtil::checkInt64($var); + $this->if_metageneration_not_match = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRequest.php new file mode 100644 index 000000000000..95e38618037c --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRequest.php @@ -0,0 +1,221 @@ +google.storage.control.v2.DeleteFolderRequest + */ +class DeleteFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the folder. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * + * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Makes the operation only succeed conditional on whether the folder's + * current metageneration matches the given value. + * + * Generated from protobuf field optional int64 if_metageneration_match = 3; + */ + protected $if_metageneration_match = null; + /** + * Makes the operation only succeed conditional on whether the folder's + * current metageneration does not match the given value. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 4; + */ + protected $if_metageneration_not_match = null; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $name Required. Name of the folder. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * Please see {@see StorageControlClient::folderName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\DeleteFolderRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the folder. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * @type int|string $if_metageneration_match + * Makes the operation only succeed conditional on whether the folder's + * current metageneration matches the given value. + * @type int|string $if_metageneration_not_match + * Makes the operation only succeed conditional on whether the folder's + * current metageneration does not match the given value. + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the folder. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * + * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the folder. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * + * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Makes the operation only succeed conditional on whether the folder's + * current metageneration matches the given value. + * + * Generated from protobuf field optional int64 if_metageneration_match = 3; + * @return int|string + */ + public function getIfMetagenerationMatch() + { + return isset($this->if_metageneration_match) ? $this->if_metageneration_match : 0; + } + + public function hasIfMetagenerationMatch() + { + return isset($this->if_metageneration_match); + } + + public function clearIfMetagenerationMatch() + { + unset($this->if_metageneration_match); + } + + /** + * Makes the operation only succeed conditional on whether the folder's + * current metageneration matches the given value. + * + * Generated from protobuf field optional int64 if_metageneration_match = 3; + * @param int|string $var + * @return $this + */ + public function setIfMetagenerationMatch($var) + { + GPBUtil::checkInt64($var); + $this->if_metageneration_match = $var; + + return $this; + } + + /** + * Makes the operation only succeed conditional on whether the folder's + * current metageneration does not match the given value. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 4; + * @return int|string + */ + public function getIfMetagenerationNotMatch() + { + return isset($this->if_metageneration_not_match) ? $this->if_metageneration_not_match : 0; + } + + public function hasIfMetagenerationNotMatch() + { + return isset($this->if_metageneration_not_match); + } + + public function clearIfMetagenerationNotMatch() + { + unset($this->if_metageneration_not_match); + } + + /** + * Makes the operation only succeed conditional on whether the folder's + * current metageneration does not match the given value. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 4; + * @param int|string $var + * @return $this + */ + public function setIfMetagenerationNotMatch($var) + { + GPBUtil::checkInt64($var); + $this->if_metageneration_not_match = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteManagedFolderRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteManagedFolderRequest.php new file mode 100644 index 000000000000..a0c677dbdfe2 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteManagedFolderRequest.php @@ -0,0 +1,271 @@ +google.storage.control.v2.DeleteManagedFolderRequest + */ +class DeleteManagedFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the managed folder. + * Format: + * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` + * + * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The operation succeeds conditional on the managed folder's current + * metageneration matching the value here specified. + * + * Generated from protobuf field optional int64 if_metageneration_match = 3; + */ + protected $if_metageneration_match = null; + /** + * The operation succeeds conditional on the managed folder's current + * metageneration NOT matching the value here specified. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 4; + */ + protected $if_metageneration_not_match = null; + /** + * Allows deletion of a managed folder even if it is not empty. + * A managed folder is empty if it manages no child managed folders or + * objects. Caller must have permission for + * storage.managedFolders.setIamPolicy. + * + * Generated from protobuf field bool allow_non_empty = 5; + */ + protected $allow_non_empty = false; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $name Required. Name of the managed folder. + * Format: + * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` + * Please see {@see StorageControlClient::managedFolderName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\DeleteManagedFolderRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the managed folder. + * Format: + * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` + * @type int|string $if_metageneration_match + * The operation succeeds conditional on the managed folder's current + * metageneration matching the value here specified. + * @type int|string $if_metageneration_not_match + * The operation succeeds conditional on the managed folder's current + * metageneration NOT matching the value here specified. + * @type bool $allow_non_empty + * Allows deletion of a managed folder even if it is not empty. + * A managed folder is empty if it manages no child managed folders or + * objects. Caller must have permission for + * storage.managedFolders.setIamPolicy. + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the managed folder. + * Format: + * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` + * + * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the managed folder. + * Format: + * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` + * + * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The operation succeeds conditional on the managed folder's current + * metageneration matching the value here specified. + * + * Generated from protobuf field optional int64 if_metageneration_match = 3; + * @return int|string + */ + public function getIfMetagenerationMatch() + { + return isset($this->if_metageneration_match) ? $this->if_metageneration_match : 0; + } + + public function hasIfMetagenerationMatch() + { + return isset($this->if_metageneration_match); + } + + public function clearIfMetagenerationMatch() + { + unset($this->if_metageneration_match); + } + + /** + * The operation succeeds conditional on the managed folder's current + * metageneration matching the value here specified. + * + * Generated from protobuf field optional int64 if_metageneration_match = 3; + * @param int|string $var + * @return $this + */ + public function setIfMetagenerationMatch($var) + { + GPBUtil::checkInt64($var); + $this->if_metageneration_match = $var; + + return $this; + } + + /** + * The operation succeeds conditional on the managed folder's current + * metageneration NOT matching the value here specified. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 4; + * @return int|string + */ + public function getIfMetagenerationNotMatch() + { + return isset($this->if_metageneration_not_match) ? $this->if_metageneration_not_match : 0; + } + + public function hasIfMetagenerationNotMatch() + { + return isset($this->if_metageneration_not_match); + } + + public function clearIfMetagenerationNotMatch() + { + unset($this->if_metageneration_not_match); + } + + /** + * The operation succeeds conditional on the managed folder's current + * metageneration NOT matching the value here specified. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 4; + * @param int|string $var + * @return $this + */ + public function setIfMetagenerationNotMatch($var) + { + GPBUtil::checkInt64($var); + $this->if_metageneration_not_match = $var; + + return $this; + } + + /** + * Allows deletion of a managed folder even if it is not empty. + * A managed folder is empty if it manages no child managed folders or + * objects. Caller must have permission for + * storage.managedFolders.setIamPolicy. + * + * Generated from protobuf field bool allow_non_empty = 5; + * @return bool + */ + public function getAllowNonEmpty() + { + return $this->allow_non_empty; + } + + /** + * Allows deletion of a managed folder even if it is not empty. + * A managed folder is empty if it manages no child managed folders or + * objects. Caller must have permission for + * storage.managedFolders.setIamPolicy. + * + * Generated from protobuf field bool allow_non_empty = 5; + * @param bool $var + * @return $this + */ + public function setAllowNonEmpty($var) + { + GPBUtil::checkBool($var); + $this->allow_non_empty = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DisableAnywhereCacheRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DisableAnywhereCacheRequest.php new file mode 100644 index 000000000000..9e5b29ebeb83 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DisableAnywhereCacheRequest.php @@ -0,0 +1,128 @@ +google.storage.control.v2.DisableAnywhereCacheRequest + */ +class DisableAnywhereCacheRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $name Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * Please see {@see StorageControlClient::anywhereCacheName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\DisableAnywhereCacheRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingCategory.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingCategory.php new file mode 100644 index 000000000000..352db1f0b22f --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingCategory.php @@ -0,0 +1,61 @@ +google.storage.control.v2.FindingCategory + */ +class FindingCategory +{ + /** + * Category is unspecified. + * + * Generated from protobuf enum FINDING_CATEGORY_UNSPECIFIED = 0; + */ + const FINDING_CATEGORY_UNSPECIFIED = 0; + /** + * Category is 'Data Management'. + * + * Generated from protobuf enum FINDING_CATEGORY_DATA_MANAGEMENT = 1; + */ + const FINDING_CATEGORY_DATA_MANAGEMENT = 1; + /** + * Category is 'Performance'. + * + * Generated from protobuf enum FINDING_CATEGORY_PERFORMANCE = 2; + */ + const FINDING_CATEGORY_PERFORMANCE = 2; + + private static $valueToName = [ + self::FINDING_CATEGORY_UNSPECIFIED => 'FINDING_CATEGORY_UNSPECIFIED', + self::FINDING_CATEGORY_DATA_MANAGEMENT => 'FINDING_CATEGORY_DATA_MANAGEMENT', + self::FINDING_CATEGORY_PERFORMANCE => 'FINDING_CATEGORY_PERFORMANCE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSeverity.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSeverity.php new file mode 100644 index 000000000000..f2f2d2d3d3fe --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSeverity.php @@ -0,0 +1,54 @@ +google.storage.control.v2.FindingSeverity + */ +class FindingSeverity +{ + /** + * Severity is unspecified. + * + * Generated from protobuf enum FINDING_SEVERITY_UNSPECIFIED = 0; + */ + const FINDING_SEVERITY_UNSPECIFIED = 0; + /** + * Severity is critical. + * + * Generated from protobuf enum FINDING_SEVERITY_CRITICAL = 1; + */ + const FINDING_SEVERITY_CRITICAL = 1; + + private static $valueToName = [ + self::FINDING_SEVERITY_UNSPECIFIED => 'FINDING_SEVERITY_UNSPECIFIED', + self::FINDING_SEVERITY_CRITICAL => 'FINDING_SEVERITY_CRITICAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary.php new file mode 100644 index 000000000000..8409eb38a1a4 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary.php @@ -0,0 +1,307 @@ +google.storage.control.v2.FindingSummary + */ +class FindingSummary extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The type of the finding. + * + * Generated from protobuf field .google.storage.control.v2.FindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $type = 0; + /** + * Output only. The category of finding. + * + * Generated from protobuf field .google.storage.control.v2.FindingCategory category = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $category = 0; + /** + * Output only. The fully qualified Cloud resource name for which this + * summary was generated. + * eg: `//cloudresourcemanager.googleapis.com/projects/p1` + * + * Generated from protobuf field string target_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target_resource = ''; + /** + * Output only. The creation time of the earliest finding that this summary is + * based on. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time of the most recent update among all the findings that + * this summary is based on. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Severity of the finding. + * + * Generated from protobuf field .google.storage.control.v2.FindingSeverity severity = 7; + */ + protected $severity = 0; + /** + * Output only. List of `SummaryDetails`. + * + * Generated from protobuf field repeated .google.storage.control.v2.FindingSummary.SummaryDetails summary_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $summary_details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * Output only. The type of the finding. + * @type int $category + * Output only. The category of finding. + * @type string $target_resource + * Output only. The fully qualified Cloud resource name for which this + * summary was generated. + * eg: `//cloudresourcemanager.googleapis.com/projects/p1` + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The creation time of the earliest finding that this summary is + * based on. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time of the most recent update among all the findings that + * this summary is based on. + * @type int $severity + * Severity of the finding. + * @type \Google\Cloud\Storage\Control\V2\FindingSummary\SummaryDetails[] $summary_details + * Output only. List of `SummaryDetails`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The type of the finding. + * + * Generated from protobuf field .google.storage.control.v2.FindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Output only. The type of the finding. + * + * Generated from protobuf field .google.storage.control.v2.FindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\FindingType::class); + $this->type = $var; + + return $this; + } + + /** + * Output only. The category of finding. + * + * Generated from protobuf field .google.storage.control.v2.FindingCategory category = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getCategory() + { + return $this->category; + } + + /** + * Output only. The category of finding. + * + * Generated from protobuf field .google.storage.control.v2.FindingCategory category = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setCategory($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\FindingCategory::class); + $this->category = $var; + + return $this; + } + + /** + * Output only. The fully qualified Cloud resource name for which this + * summary was generated. + * eg: `//cloudresourcemanager.googleapis.com/projects/p1` + * + * Generated from protobuf field string target_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTargetResource() + { + return $this->target_resource; + } + + /** + * Output only. The fully qualified Cloud resource name for which this + * summary was generated. + * eg: `//cloudresourcemanager.googleapis.com/projects/p1` + * + * Generated from protobuf field string target_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTargetResource($var) + { + GPBUtil::checkString($var, True); + $this->target_resource = $var; + + return $this; + } + + /** + * Output only. The creation time of the earliest finding that this summary is + * based on. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The creation time of the earliest finding that this summary is + * based on. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time of the most recent update among all the findings that + * this summary is based on. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time of the most recent update among all the findings that + * this summary is based on. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Severity of the finding. + * + * Generated from protobuf field .google.storage.control.v2.FindingSeverity severity = 7; + * @return int + */ + public function getSeverity() + { + return $this->severity; + } + + /** + * Severity of the finding. + * + * Generated from protobuf field .google.storage.control.v2.FindingSeverity severity = 7; + * @param int $var + * @return $this + */ + public function setSeverity($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\FindingSeverity::class); + $this->severity = $var; + + return $this; + } + + /** + * Output only. List of `SummaryDetails`. + * + * Generated from protobuf field repeated .google.storage.control.v2.FindingSummary.SummaryDetails summary_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Storage\Control\V2\FindingSummary\SummaryDetails> + */ + public function getSummaryDetails() + { + return $this->summary_details; + } + + /** + * Output only. List of `SummaryDetails`. + * + * Generated from protobuf field repeated .google.storage.control.v2.FindingSummary.SummaryDetails summary_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\FindingSummary\SummaryDetails[] $var + * @return $this + */ + public function setSummaryDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\FindingSummary\SummaryDetails::class); + $this->summary_details = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary/SummaryDetails.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary/SummaryDetails.php new file mode 100644 index 000000000000..eb7124be783f --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary/SummaryDetails.php @@ -0,0 +1,176 @@ +google.storage.control.v2.FindingSummary.SummaryDetails + */ +class SummaryDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The type of Cloud resource this summary detail applies to. + * + * Generated from protobuf field .google.storage.control.v2.FindingSummary.SummaryDetails.ResourceType resource_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $resource_type = 0; + /** + * Output only. A short description about the FindingSummary + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $description = ''; + protected $magnitude; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $count + * The count of impacted resources. + * @type float $percentage + * The percentage of impacted resources. + * @type int $resource_type + * Output only. The type of Cloud resource this summary detail applies to. + * @type string $description + * Output only. A short description about the FindingSummary + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * The count of impacted resources. + * + * Generated from protobuf field int64 count = 1; + * @return int|string + */ + public function getCount() + { + return $this->readOneof(1); + } + + public function hasCount() + { + return $this->hasOneof(1); + } + + /** + * The count of impacted resources. + * + * Generated from protobuf field int64 count = 1; + * @param int|string $var + * @return $this + */ + public function setCount($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The percentage of impacted resources. + * + * Generated from protobuf field float percentage = 2; + * @return float + */ + public function getPercentage() + { + return $this->readOneof(2); + } + + public function hasPercentage() + { + return $this->hasOneof(2); + } + + /** + * The percentage of impacted resources. + * + * Generated from protobuf field float percentage = 2; + * @param float $var + * @return $this + */ + public function setPercentage($var) + { + GPBUtil::checkFloat($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Output only. The type of Cloud resource this summary detail applies to. + * + * Generated from protobuf field .google.storage.control.v2.FindingSummary.SummaryDetails.ResourceType resource_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getResourceType() + { + return $this->resource_type; + } + + /** + * Output only. The type of Cloud resource this summary detail applies to. + * + * Generated from protobuf field .google.storage.control.v2.FindingSummary.SummaryDetails.ResourceType resource_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setResourceType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\FindingSummary\SummaryDetails\ResourceType::class); + $this->resource_type = $var; + + return $this; + } + + /** + * Output only. A short description about the FindingSummary + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Output only. A short description about the FindingSummary + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * @return string + */ + public function getMagnitude() + { + return $this->whichOneof("magnitude"); + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary/SummaryDetails/ResourceType.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary/SummaryDetails/ResourceType.php new file mode 100644 index 000000000000..24e36f96bf19 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary/SummaryDetails/ResourceType.php @@ -0,0 +1,61 @@ +google.storage.control.v2.FindingSummary.SummaryDetails.ResourceType + */ +class ResourceType +{ + /** + * Resource type is unspecified. + * + * Generated from protobuf enum RESOURCE_TYPE_UNSPECIFIED = 0; + */ + const RESOURCE_TYPE_UNSPECIFIED = 0; + /** + * Resource type is project. + * + * Generated from protobuf enum PROJECT = 1; + */ + const PROJECT = 1; + /** + * Resource type is bucket. + * + * Generated from protobuf enum BUCKET = 2; + */ + const BUCKET = 2; + + private static $valueToName = [ + self::RESOURCE_TYPE_UNSPECIFIED => 'RESOURCE_TYPE_UNSPECIFIED', + self::PROJECT => 'PROJECT', + self::BUCKET => 'BUCKET', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingType.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingType.php new file mode 100644 index 000000000000..d4a885894359 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingType.php @@ -0,0 +1,77 @@ +google.storage.control.v2.FindingType + */ +class FindingType +{ + /** + * Finding type is unspecified. + * + * Generated from protobuf enum FINDING_TYPE_UNSPECIFIED = 0; + */ + const FINDING_TYPE_UNSPECIFIED = 0; + /** + * Finding is about a spike in Class A/B operations on Coldline or Archive + * Cloud Storage objects. + * + * Generated from protobuf enum FINDING_TYPE_COLDLINE_AND_ARCHIVAL_STORAGE_OPERATIONS_SPIKE = 1; + */ + const FINDING_TYPE_COLDLINE_AND_ARCHIVAL_STORAGE_OPERATIONS_SPIKE = 1; + /** + * Finding is about a spike in throttled requests (429 errors) within a + * project. + * + * Generated from protobuf enum FINDING_TYPE_THROTTLED_REQUEST_SPIKE = 2; + */ + const FINDING_TYPE_THROTTLED_REQUEST_SPIKE = 2; + /** + * Finding is about a spike in cross region egress in Cloud Storage. + * + * Generated from protobuf enum FINDING_TYPE_CROSS_REGION_EGRESS_SPIKE = 3; + */ + const FINDING_TYPE_CROSS_REGION_EGRESS_SPIKE = 3; + /** + * Finding is about growth in storage above the expected trend. + * + * Generated from protobuf enum FINDING_TYPE_STORAGE_GROWTH_ABOVE_TREND = 4; + */ + const FINDING_TYPE_STORAGE_GROWTH_ABOVE_TREND = 4; + + private static $valueToName = [ + self::FINDING_TYPE_UNSPECIFIED => 'FINDING_TYPE_UNSPECIFIED', + self::FINDING_TYPE_COLDLINE_AND_ARCHIVAL_STORAGE_OPERATIONS_SPIKE => 'FINDING_TYPE_COLDLINE_AND_ARCHIVAL_STORAGE_OPERATIONS_SPIKE', + self::FINDING_TYPE_THROTTLED_REQUEST_SPIKE => 'FINDING_TYPE_THROTTLED_REQUEST_SPIKE', + self::FINDING_TYPE_CROSS_REGION_EGRESS_SPIKE => 'FINDING_TYPE_CROSS_REGION_EGRESS_SPIKE', + self::FINDING_TYPE_STORAGE_GROWTH_ABOVE_TREND => 'FINDING_TYPE_STORAGE_GROWTH_ABOVE_TREND', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/Folder.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/Folder.php new file mode 100644 index 000000000000..1aa6bb03a2f8 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/Folder.php @@ -0,0 +1,258 @@ +google.storage.control.v2.Folder + */ +class Folder extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name of this folder. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The version of the metadata for this folder. Used for + * preconditions and for detecting changes in metadata. + * + * Generated from protobuf field int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $metageneration = 0; + /** + * Output only. The creation time of the folder. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The modification time of the folder. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. Only present if the folder is part of an ongoing RenameFolder + * operation. Contains information which can be used to query the operation + * status. The presence of this field also indicates all write operations are + * blocked for this folder, including folder, managed folder, and object + * operations. + * + * Generated from protobuf field .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $pending_rename_info = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The name of this folder. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * @type int|string $metageneration + * Output only. The version of the metadata for this folder. Used for + * preconditions and for detecting changes in metadata. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The creation time of the folder. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The modification time of the folder. + * @type \Google\Cloud\Storage\Control\V2\PendingRenameInfo $pending_rename_info + * Output only. Only present if the folder is part of an ongoing RenameFolder + * operation. Contains information which can be used to query the operation + * status. The presence of this field also indicates all write operations are + * blocked for this folder, including folder, managed folder, and object + * operations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The name of this folder. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of this folder. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The version of the metadata for this folder. Used for + * preconditions and for detecting changes in metadata. + * + * Generated from protobuf field int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getMetageneration() + { + return $this->metageneration; + } + + /** + * Output only. The version of the metadata for this folder. Used for + * preconditions and for detecting changes in metadata. + * + * Generated from protobuf field int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setMetageneration($var) + { + GPBUtil::checkInt64($var); + $this->metageneration = $var; + + return $this; + } + + /** + * Output only. The creation time of the folder. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The creation time of the folder. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The modification time of the folder. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The modification time of the folder. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. Only present if the folder is part of an ongoing RenameFolder + * operation. Contains information which can be used to query the operation + * status. The presence of this field also indicates all write operations are + * blocked for this folder, including folder, managed folder, and object + * operations. + * + * Generated from protobuf field .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Storage\Control\V2\PendingRenameInfo|null + */ + public function getPendingRenameInfo() + { + return $this->pending_rename_info; + } + + public function hasPendingRenameInfo() + { + return isset($this->pending_rename_info); + } + + public function clearPendingRenameInfo() + { + unset($this->pending_rename_info); + } + + /** + * Output only. Only present if the folder is part of an ongoing RenameFolder + * operation. Contains information which can be used to query the operation + * status. The presence of this field also indicates all write operations are + * blocked for this folder, including folder, managed folder, and object + * operations. + * + * Generated from protobuf field .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\PendingRenameInfo $var + * @return $this + */ + public function setPendingRenameInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\PendingRenameInfo::class); + $this->pending_rename_info = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetAnywhereCacheRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetAnywhereCacheRequest.php new file mode 100644 index 000000000000..e09e6f6d7c7b --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetAnywhereCacheRequest.php @@ -0,0 +1,124 @@ +google.storage.control.v2.GetAnywhereCacheRequest + */ +class GetAnywhereCacheRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $name Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * Please see {@see StorageControlClient::anywhereCacheName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\GetAnywhereCacheRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetFolderIntelligenceConfigRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetFolderIntelligenceConfigRequest.php new file mode 100644 index 000000000000..9de5499e28f4 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetFolderIntelligenceConfigRequest.php @@ -0,0 +1,93 @@ +google.storage.control.v2.GetFolderIntelligenceConfigRequest + */ +class GetFolderIntelligenceConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the `IntelligenceConfig` resource associated with + * your folder. + * Format: `folders/{id}/locations/global/intelligenceConfig` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the `IntelligenceConfig` resource associated with + * your folder. + * + * Format: `folders/{id}/locations/global/intelligenceConfig` + * Please see {@see StorageControlClient::intelligenceConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\GetFolderIntelligenceConfigRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the `IntelligenceConfig` resource associated with + * your folder. + * Format: `folders/{id}/locations/global/intelligenceConfig` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the `IntelligenceConfig` resource associated with + * your folder. + * Format: `folders/{id}/locations/global/intelligenceConfig` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the `IntelligenceConfig` resource associated with + * your folder. + * Format: `folders/{id}/locations/global/intelligenceConfig` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetFolderRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetFolderRequest.php new file mode 100644 index 000000000000..690e4ddc693a --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetFolderRequest.php @@ -0,0 +1,221 @@ +google.storage.control.v2.GetFolderRequest + */ +class GetFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the folder. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * + * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Makes the operation only succeed conditional on whether the folder's + * current metageneration matches the given value. + * + * Generated from protobuf field optional int64 if_metageneration_match = 3; + */ + protected $if_metageneration_match = null; + /** + * Makes the operation only succeed conditional on whether the folder's + * current metageneration does not match the given value. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 4; + */ + protected $if_metageneration_not_match = null; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $name Required. Name of the folder. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * Please see {@see StorageControlClient::folderName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\GetFolderRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the folder. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * @type int|string $if_metageneration_match + * Makes the operation only succeed conditional on whether the folder's + * current metageneration matches the given value. + * @type int|string $if_metageneration_not_match + * Makes the operation only succeed conditional on whether the folder's + * current metageneration does not match the given value. + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the folder. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * + * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the folder. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * + * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Makes the operation only succeed conditional on whether the folder's + * current metageneration matches the given value. + * + * Generated from protobuf field optional int64 if_metageneration_match = 3; + * @return int|string + */ + public function getIfMetagenerationMatch() + { + return isset($this->if_metageneration_match) ? $this->if_metageneration_match : 0; + } + + public function hasIfMetagenerationMatch() + { + return isset($this->if_metageneration_match); + } + + public function clearIfMetagenerationMatch() + { + unset($this->if_metageneration_match); + } + + /** + * Makes the operation only succeed conditional on whether the folder's + * current metageneration matches the given value. + * + * Generated from protobuf field optional int64 if_metageneration_match = 3; + * @param int|string $var + * @return $this + */ + public function setIfMetagenerationMatch($var) + { + GPBUtil::checkInt64($var); + $this->if_metageneration_match = $var; + + return $this; + } + + /** + * Makes the operation only succeed conditional on whether the folder's + * current metageneration does not match the given value. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 4; + * @return int|string + */ + public function getIfMetagenerationNotMatch() + { + return isset($this->if_metageneration_not_match) ? $this->if_metageneration_not_match : 0; + } + + public function hasIfMetagenerationNotMatch() + { + return isset($this->if_metageneration_not_match); + } + + public function clearIfMetagenerationNotMatch() + { + unset($this->if_metageneration_not_match); + } + + /** + * Makes the operation only succeed conditional on whether the folder's + * current metageneration does not match the given value. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 4; + * @param int|string $var + * @return $this + */ + public function setIfMetagenerationNotMatch($var) + { + GPBUtil::checkInt64($var); + $this->if_metageneration_not_match = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetIntelligenceFindingRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetIntelligenceFindingRequest.php new file mode 100644 index 000000000000..f787ace6a22e --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetIntelligenceFindingRequest.php @@ -0,0 +1,93 @@ +google.storage.control.v2.GetIntelligenceFindingRequest + */ +class GetIntelligenceFindingRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the `IntelligenceFinding` resource. + * Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the `IntelligenceFinding` resource. + * + * Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` + * Please see {@see StorageControlClient::intelligenceFindingName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\GetIntelligenceFindingRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the `IntelligenceFinding` resource. + * Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the `IntelligenceFinding` resource. + * Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the `IntelligenceFinding` resource. + * Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetIntelligenceFindingRevisionRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetIntelligenceFindingRevisionRequest.php new file mode 100644 index 000000000000..4224dc9017be --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetIntelligenceFindingRevisionRequest.php @@ -0,0 +1,93 @@ +google.storage.control.v2.GetIntelligenceFindingRevisionRequest + */ +class GetIntelligenceFindingRevisionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the `IntelligenceFindingRevision` resource. + * ## Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the `IntelligenceFindingRevision` resource. + * ## Format: + * + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` + * Please see {@see StorageControlClient::intelligenceFindingRevisionName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\GetIntelligenceFindingRevisionRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the `IntelligenceFindingRevision` resource. + * ## Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the `IntelligenceFindingRevision` resource. + * ## Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the `IntelligenceFindingRevision` resource. + * ## Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetManagedFolderRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetManagedFolderRequest.php new file mode 100644 index 000000000000..3410e9e7a898 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetManagedFolderRequest.php @@ -0,0 +1,225 @@ +google.storage.control.v2.GetManagedFolderRequest + */ +class GetManagedFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the managed folder. + * Format: + * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` + * + * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The operation succeeds conditional on the managed folder's current + * metageneration matching the value here specified. + * + * Generated from protobuf field optional int64 if_metageneration_match = 3; + */ + protected $if_metageneration_match = null; + /** + * The operation succeeds conditional on the managed folder's current + * metageneration NOT matching the value here specified. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 4; + */ + protected $if_metageneration_not_match = null; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $name Required. Name of the managed folder. + * Format: + * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` + * Please see {@see StorageControlClient::managedFolderName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\GetManagedFolderRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the managed folder. + * Format: + * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` + * @type int|string $if_metageneration_match + * The operation succeeds conditional on the managed folder's current + * metageneration matching the value here specified. + * @type int|string $if_metageneration_not_match + * The operation succeeds conditional on the managed folder's current + * metageneration NOT matching the value here specified. + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the managed folder. + * Format: + * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` + * + * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the managed folder. + * Format: + * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` + * + * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The operation succeeds conditional on the managed folder's current + * metageneration matching the value here specified. + * + * Generated from protobuf field optional int64 if_metageneration_match = 3; + * @return int|string + */ + public function getIfMetagenerationMatch() + { + return isset($this->if_metageneration_match) ? $this->if_metageneration_match : 0; + } + + public function hasIfMetagenerationMatch() + { + return isset($this->if_metageneration_match); + } + + public function clearIfMetagenerationMatch() + { + unset($this->if_metageneration_match); + } + + /** + * The operation succeeds conditional on the managed folder's current + * metageneration matching the value here specified. + * + * Generated from protobuf field optional int64 if_metageneration_match = 3; + * @param int|string $var + * @return $this + */ + public function setIfMetagenerationMatch($var) + { + GPBUtil::checkInt64($var); + $this->if_metageneration_match = $var; + + return $this; + } + + /** + * The operation succeeds conditional on the managed folder's current + * metageneration NOT matching the value here specified. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 4; + * @return int|string + */ + public function getIfMetagenerationNotMatch() + { + return isset($this->if_metageneration_not_match) ? $this->if_metageneration_not_match : 0; + } + + public function hasIfMetagenerationNotMatch() + { + return isset($this->if_metageneration_not_match); + } + + public function clearIfMetagenerationNotMatch() + { + unset($this->if_metageneration_not_match); + } + + /** + * The operation succeeds conditional on the managed folder's current + * metageneration NOT matching the value here specified. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 4; + * @param int|string $var + * @return $this + */ + public function setIfMetagenerationNotMatch($var) + { + GPBUtil::checkInt64($var); + $this->if_metageneration_not_match = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetOrganizationIntelligenceConfigRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetOrganizationIntelligenceConfigRequest.php new file mode 100644 index 000000000000..256a3a19da96 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetOrganizationIntelligenceConfigRequest.php @@ -0,0 +1,93 @@ +google.storage.control.v2.GetOrganizationIntelligenceConfigRequest + */ +class GetOrganizationIntelligenceConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the `IntelligenceConfig` resource associated with + * your organization. + * Format: `organizations/{org_id}/locations/global/intelligenceConfig` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the `IntelligenceConfig` resource associated with + * your organization. + * + * Format: `organizations/{org_id}/locations/global/intelligenceConfig` + * Please see {@see StorageControlClient::intelligenceConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\GetOrganizationIntelligenceConfigRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the `IntelligenceConfig` resource associated with + * your organization. + * Format: `organizations/{org_id}/locations/global/intelligenceConfig` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the `IntelligenceConfig` resource associated with + * your organization. + * Format: `organizations/{org_id}/locations/global/intelligenceConfig` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the `IntelligenceConfig` resource associated with + * your organization. + * Format: `organizations/{org_id}/locations/global/intelligenceConfig` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetProjectIntelligenceConfigRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetProjectIntelligenceConfigRequest.php new file mode 100644 index 000000000000..7134fad72722 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetProjectIntelligenceConfigRequest.php @@ -0,0 +1,93 @@ +google.storage.control.v2.GetProjectIntelligenceConfigRequest + */ +class GetProjectIntelligenceConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the `IntelligenceConfig` resource associated with + * your project. + * Format: `projects/{id}/locations/global/intelligenceConfig` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the `IntelligenceConfig` resource associated with + * your project. + * + * Format: `projects/{id}/locations/global/intelligenceConfig` + * Please see {@see StorageControlClient::intelligenceConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\GetProjectIntelligenceConfigRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the `IntelligenceConfig` resource associated with + * your project. + * Format: `projects/{id}/locations/global/intelligenceConfig` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the `IntelligenceConfig` resource associated with + * your project. + * Format: `projects/{id}/locations/global/intelligenceConfig` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the `IntelligenceConfig` resource associated with + * your project. + * Format: `projects/{id}/locations/global/intelligenceConfig` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetRapidCacheRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetRapidCacheRequest.php new file mode 100644 index 000000000000..d1ee8263787d --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetRapidCacheRequest.php @@ -0,0 +1,124 @@ +google.storage.control.v2.GetRapidCacheRequest + */ +class GetRapidCacheRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $name Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}` + * Please see {@see StorageControlClient::rapidCacheName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\GetRapidCacheRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}` + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetStorageLayoutRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetStorageLayoutRequest.php new file mode 100644 index 000000000000..ffd8ff92e0c5 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetStorageLayoutRequest.php @@ -0,0 +1,162 @@ +google.storage.control.v2.GetStorageLayoutRequest + */ +class GetStorageLayoutRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the StorageLayout resource. + * Format: `projects/{project}/buckets/{bucket}/storageLayout` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * An optional prefix used for permission check. It is useful when the caller + * only has limited permissions under a specific prefix. + * + * Generated from protobuf field string prefix = 2; + */ + protected $prefix = ''; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $name Required. The name of the StorageLayout resource. + * Format: `projects/{project}/buckets/{bucket}/storageLayout` + * Please see {@see StorageControlClient::storageLayoutName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\GetStorageLayoutRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the StorageLayout resource. + * Format: `projects/{project}/buckets/{bucket}/storageLayout` + * @type string $prefix + * An optional prefix used for permission check. It is useful when the caller + * only has limited permissions under a specific prefix. + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the StorageLayout resource. + * Format: `projects/{project}/buckets/{bucket}/storageLayout` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the StorageLayout resource. + * Format: `projects/{project}/buckets/{bucket}/storageLayout` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * An optional prefix used for permission check. It is useful when the caller + * only has limited permissions under a specific prefix. + * + * Generated from protobuf field string prefix = 2; + * @return string + */ + public function getPrefix() + { + return $this->prefix; + } + + /** + * An optional prefix used for permission check. It is useful when the caller + * only has limited permissions under a specific prefix. + * + * Generated from protobuf field string prefix = 2; + * @param string $var + * @return $this + */ + public function setPrefix($var) + { + GPBUtil::checkString($var, True); + $this->prefix = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig.php new file mode 100644 index 000000000000..e5ce108d3049 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig.php @@ -0,0 +1,314 @@ +google.storage.control.v2.IntelligenceConfig + */ +class IntelligenceConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name of the `IntelligenceConfig` resource associated with + * your organization, folder, or project. + * The name format varies based on the GCP resource hierarchy as follows: + * * For project: + * `projects/{project_number}/locations/global/intelligenceConfig` + * * For organization: + * `organizations/{org_id}/locations/global/intelligenceConfig` + * * For folder: `folders/{folder_id}/locations/global/intelligenceConfig` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. The edition configuration of the `IntelligenceConfig` resource. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.EditionConfig edition_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $edition_config = 0; + /** + * Output only. The time at which the `IntelligenceConfig` resource is last + * updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. Filter over location and bucket. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = null; + /** + * Output only. The `IntelligenceConfig` resource that is applicable for the + * resource. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig effective_intelligence_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $effective_intelligence_config = null; + /** + * The trial configuration of the `IntelligenceConfig` resource. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.TrialConfig trial_config = 7; + */ + protected $trial_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The name of the `IntelligenceConfig` resource associated with + * your organization, folder, or project. + * The name format varies based on the GCP resource hierarchy as follows: + * * For project: + * `projects/{project_number}/locations/global/intelligenceConfig` + * * For organization: + * `organizations/{org_id}/locations/global/intelligenceConfig` + * * For folder: `folders/{folder_id}/locations/global/intelligenceConfig` + * @type int $edition_config + * Optional. The edition configuration of the `IntelligenceConfig` resource. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which the `IntelligenceConfig` resource is last + * updated. + * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter $filter + * Optional. Filter over location and bucket. + * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig\EffectiveIntelligenceConfig $effective_intelligence_config + * Output only. The `IntelligenceConfig` resource that is applicable for the + * resource. + * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig\TrialConfig $trial_config + * The trial configuration of the `IntelligenceConfig` resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The name of the `IntelligenceConfig` resource associated with + * your organization, folder, or project. + * The name format varies based on the GCP resource hierarchy as follows: + * * For project: + * `projects/{project_number}/locations/global/intelligenceConfig` + * * For organization: + * `organizations/{org_id}/locations/global/intelligenceConfig` + * * For folder: `folders/{folder_id}/locations/global/intelligenceConfig` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the `IntelligenceConfig` resource associated with + * your organization, folder, or project. + * The name format varies based on the GCP resource hierarchy as follows: + * * For project: + * `projects/{project_number}/locations/global/intelligenceConfig` + * * For organization: + * `organizations/{org_id}/locations/global/intelligenceConfig` + * * For folder: `folders/{folder_id}/locations/global/intelligenceConfig` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The edition configuration of the `IntelligenceConfig` resource. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.EditionConfig edition_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getEditionConfig() + { + return $this->edition_config; + } + + /** + * Optional. The edition configuration of the `IntelligenceConfig` resource. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.EditionConfig edition_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setEditionConfig($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig\EditionConfig::class); + $this->edition_config = $var; + + return $this; + } + + /** + * Output only. The time at which the `IntelligenceConfig` resource is last + * updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time at which the `IntelligenceConfig` resource is last + * updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. Filter over location and bucket. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter|null + */ + public function getFilter() + { + return $this->filter; + } + + public function hasFilter() + { + return isset($this->filter); + } + + public function clearFilter() + { + unset($this->filter); + } + + /** + * Optional. Filter over location and bucket. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter::class); + $this->filter = $var; + + return $this; + } + + /** + * Output only. The `IntelligenceConfig` resource that is applicable for the + * resource. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig effective_intelligence_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig\EffectiveIntelligenceConfig|null + */ + public function getEffectiveIntelligenceConfig() + { + return $this->effective_intelligence_config; + } + + public function hasEffectiveIntelligenceConfig() + { + return isset($this->effective_intelligence_config); + } + + public function clearEffectiveIntelligenceConfig() + { + unset($this->effective_intelligence_config); + } + + /** + * Output only. The `IntelligenceConfig` resource that is applicable for the + * resource. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig effective_intelligence_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig\EffectiveIntelligenceConfig $var + * @return $this + */ + public function setEffectiveIntelligenceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig\EffectiveIntelligenceConfig::class); + $this->effective_intelligence_config = $var; + + return $this; + } + + /** + * The trial configuration of the `IntelligenceConfig` resource. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.TrialConfig trial_config = 7; + * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig\TrialConfig|null + */ + public function getTrialConfig() + { + return $this->trial_config; + } + + public function hasTrialConfig() + { + return isset($this->trial_config); + } + + public function clearTrialConfig() + { + unset($this->trial_config); + } + + /** + * The trial configuration of the `IntelligenceConfig` resource. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.TrialConfig trial_config = 7; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig\TrialConfig $var + * @return $this + */ + public function setTrialConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig\TrialConfig::class); + $this->trial_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EditionConfig.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EditionConfig.php new file mode 100644 index 000000000000..e25ed383c629 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EditionConfig.php @@ -0,0 +1,92 @@ +google.storage.control.v2.IntelligenceConfig.EditionConfig + */ +class EditionConfig +{ + /** + * This is an unknown edition of the resource. + * + * Generated from protobuf enum EDITION_CONFIG_UNSPECIFIED = 0; + */ + const EDITION_CONFIG_UNSPECIFIED = 0; + /** + * The inherited edition from the parent and filters. This is the default + * edition when there is no `IntelligenceConfig` setup for a GCP resource. + * + * Generated from protobuf enum INHERIT = 1; + */ + const INHERIT = 1; + /** + * The edition configuration is disabled for the `IntelligenceConfig` + * resource and its children. Filters are not applicable. + * + * Generated from protobuf enum DISABLED = 2; + */ + const DISABLED = 2; + /** + * The `IntelligenceConfig` resource is of STANDARD edition. + * + * Generated from protobuf enum STANDARD = 3; + */ + const STANDARD = 3; + /** + * The `IntelligenceConfig` resource is available in `TRIAL` edition. During + * the trial period, Cloud Storage does not charge for Storage Intelligence + * usage. You can specify the buckets to include in the trial period by + * using filters. At the end of the trial period, the `IntelligenceConfig` + * resource is upgraded to `STANDARD` edition. + * + * Generated from protobuf enum TRIAL = 5; + */ + const TRIAL = 5; + /** + * The `IntelligenceConfig` resource is of ESSENTIALS edition. + * + * Generated from protobuf enum ESSENTIALS = 6; + */ + const ESSENTIALS = 6; + + private static $valueToName = [ + self::EDITION_CONFIG_UNSPECIFIED => 'EDITION_CONFIG_UNSPECIFIED', + self::INHERIT => 'INHERIT', + self::DISABLED => 'DISABLED', + self::STANDARD => 'STANDARD', + self::TRIAL => 'TRIAL', + self::ESSENTIALS => 'ESSENTIALS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EffectiveIntelligenceConfig.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EffectiveIntelligenceConfig.php new file mode 100644 index 000000000000..1cd4c633cd56 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EffectiveIntelligenceConfig.php @@ -0,0 +1,113 @@ +google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig + */ +class EffectiveIntelligenceConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The `IntelligenceConfig` edition that is applicable for the + * resource. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEdition effective_edition = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $effective_edition = 0; + /** + * Output only. The `IntelligenceConfig` resource that is applied for the + * target resource. Format: + * `{organizations|folders|projects}/{id}/locations/{location}/intelligenceConfig` + * + * Generated from protobuf field string intelligence_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $intelligence_config = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $effective_edition + * Output only. The `IntelligenceConfig` edition that is applicable for the + * resource. + * @type string $intelligence_config + * Output only. The `IntelligenceConfig` resource that is applied for the + * target resource. Format: + * `{organizations|folders|projects}/{id}/locations/{location}/intelligenceConfig` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The `IntelligenceConfig` edition that is applicable for the + * resource. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEdition effective_edition = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getEffectiveEdition() + { + return $this->effective_edition; + } + + /** + * Output only. The `IntelligenceConfig` edition that is applicable for the + * resource. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEdition effective_edition = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setEffectiveEdition($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig\EffectiveIntelligenceConfig\EffectiveEdition::class); + $this->effective_edition = $var; + + return $this; + } + + /** + * Output only. The `IntelligenceConfig` resource that is applied for the + * target resource. Format: + * `{organizations|folders|projects}/{id}/locations/{location}/intelligenceConfig` + * + * Generated from protobuf field string intelligence_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getIntelligenceConfig() + { + return $this->intelligence_config; + } + + /** + * Output only. The `IntelligenceConfig` resource that is applied for the + * target resource. Format: + * `{organizations|folders|projects}/{id}/locations/{location}/intelligenceConfig` + * + * Generated from protobuf field string intelligence_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setIntelligenceConfig($var) + { + GPBUtil::checkString($var, True); + $this->intelligence_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EffectiveIntelligenceConfig/EffectiveEdition.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EffectiveIntelligenceConfig/EffectiveEdition.php new file mode 100644 index 000000000000..d08d009cefbb --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EffectiveIntelligenceConfig/EffectiveEdition.php @@ -0,0 +1,61 @@ +google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEdition + */ +class EffectiveEdition +{ + /** + * This is an unknown edition of the resource. + * + * Generated from protobuf enum EFFECTIVE_EDITION_UNSPECIFIED = 0; + */ + const EFFECTIVE_EDITION_UNSPECIFIED = 0; + /** + * No edition. + * + * Generated from protobuf enum NONE = 1; + */ + const NONE = 1; + /** + * The `IntelligenceConfig` resource is of STANDARD edition. + * + * Generated from protobuf enum STANDARD = 2; + */ + const STANDARD = 2; + + private static $valueToName = [ + self::EFFECTIVE_EDITION_UNSPECIFIED => 'EFFECTIVE_EDITION_UNSPECIFIED', + self::NONE => 'NONE', + self::STANDARD => 'STANDARD', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter.php new file mode 100644 index 000000000000..0a2864c8cf60 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter.php @@ -0,0 +1,185 @@ +google.storage.control.v2.IntelligenceConfig.Filter + */ +class Filter extends \Google\Protobuf\Internal\Message +{ + protected $cloud_storage_locations; + protected $cloud_storage_buckets; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageLocations $included_cloud_storage_locations + * Bucket locations to include. + * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageLocations $excluded_cloud_storage_locations + * Bucket locations to exclude. + * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageBuckets $included_cloud_storage_buckets + * Buckets to include. + * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageBuckets $excluded_cloud_storage_buckets + * Buckets to exclude. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Bucket locations to include. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations included_cloud_storage_locations = 1; + * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageLocations|null + */ + public function getIncludedCloudStorageLocations() + { + return $this->readOneof(1); + } + + public function hasIncludedCloudStorageLocations() + { + return $this->hasOneof(1); + } + + /** + * Bucket locations to include. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations included_cloud_storage_locations = 1; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageLocations $var + * @return $this + */ + public function setIncludedCloudStorageLocations($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageLocations::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Bucket locations to exclude. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations excluded_cloud_storage_locations = 2; + * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageLocations|null + */ + public function getExcludedCloudStorageLocations() + { + return $this->readOneof(2); + } + + public function hasExcludedCloudStorageLocations() + { + return $this->hasOneof(2); + } + + /** + * Bucket locations to exclude. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations excluded_cloud_storage_locations = 2; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageLocations $var + * @return $this + */ + public function setExcludedCloudStorageLocations($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageLocations::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Buckets to include. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets included_cloud_storage_buckets = 3; + * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageBuckets|null + */ + public function getIncludedCloudStorageBuckets() + { + return $this->readOneof(3); + } + + public function hasIncludedCloudStorageBuckets() + { + return $this->hasOneof(3); + } + + /** + * Buckets to include. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets included_cloud_storage_buckets = 3; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageBuckets $var + * @return $this + */ + public function setIncludedCloudStorageBuckets($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageBuckets::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Buckets to exclude. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets excluded_cloud_storage_buckets = 4; + * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageBuckets|null + */ + public function getExcludedCloudStorageBuckets() + { + return $this->readOneof(4); + } + + public function hasExcludedCloudStorageBuckets() + { + return $this->hasOneof(4); + } + + /** + * Buckets to exclude. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets excluded_cloud_storage_buckets = 4; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageBuckets $var + * @return $this + */ + public function setExcludedCloudStorageBuckets($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageBuckets::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getCloudStorageLocations() + { + return $this->whichOneof("cloud_storage_locations"); + } + + /** + * @return string + */ + public function getCloudStorageBuckets() + { + return $this->whichOneof("cloud_storage_buckets"); + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter/CloudStorageBuckets.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter/CloudStorageBuckets.php new file mode 100644 index 000000000000..cb8ce36961af --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter/CloudStorageBuckets.php @@ -0,0 +1,95 @@ +google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets + */ +class CloudStorageBuckets extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A regex pattern for matching bucket names. Regex should + * follow the syntax specified in + * [google/re2](https://github.com/google/re2). For example, + * `^sample_.*` matches all buckets of the form + * `gs://sample_bucket-1`, `gs://sample_bucket-2`, + * `gs://sample_bucket-n` but not `gs://test_sample_bucket`. + * If you want to match a single bucket, say `gs://sample_bucket`, + * use `sample_bucket`. + * + * Generated from protobuf field repeated string bucket_id_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $bucket_id_regexes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $bucket_id_regexes + * Optional. A regex pattern for matching bucket names. Regex should + * follow the syntax specified in + * [google/re2](https://github.com/google/re2). For example, + * `^sample_.*` matches all buckets of the form + * `gs://sample_bucket-1`, `gs://sample_bucket-2`, + * `gs://sample_bucket-n` but not `gs://test_sample_bucket`. + * If you want to match a single bucket, say `gs://sample_bucket`, + * use `sample_bucket`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A regex pattern for matching bucket names. Regex should + * follow the syntax specified in + * [google/re2](https://github.com/google/re2). For example, + * `^sample_.*` matches all buckets of the form + * `gs://sample_bucket-1`, `gs://sample_bucket-2`, + * `gs://sample_bucket-n` but not `gs://test_sample_bucket`. + * If you want to match a single bucket, say `gs://sample_bucket`, + * use `sample_bucket`. + * + * Generated from protobuf field repeated string bucket_id_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getBucketIdRegexes() + { + return $this->bucket_id_regexes; + } + + /** + * Optional. A regex pattern for matching bucket names. Regex should + * follow the syntax specified in + * [google/re2](https://github.com/google/re2). For example, + * `^sample_.*` matches all buckets of the form + * `gs://sample_bucket-1`, `gs://sample_bucket-2`, + * `gs://sample_bucket-n` but not `gs://test_sample_bucket`. + * If you want to match a single bucket, say `gs://sample_bucket`, + * use `sample_bucket`. + * + * Generated from protobuf field repeated string bucket_id_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setBucketIdRegexes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->bucket_id_regexes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter/CloudStorageLocations.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter/CloudStorageLocations.php new file mode 100644 index 000000000000..0b3c6dfcf1ec --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter/CloudStorageLocations.php @@ -0,0 +1,75 @@ +google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations + */ +class CloudStorageLocations extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Bucket locations. Location can be any of the Cloud Storage + * regions specified in lower case format. For example, `us-east1`, + * `us-west1`. + * + * Generated from protobuf field repeated string locations = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $locations + * Optional. Bucket locations. Location can be any of the Cloud Storage + * regions specified in lower case format. For example, `us-east1`, + * `us-west1`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Bucket locations. Location can be any of the Cloud Storage + * regions specified in lower case format. For example, `us-east1`, + * `us-west1`. + * + * Generated from protobuf field repeated string locations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getLocations() + { + return $this->locations; + } + + /** + * Optional. Bucket locations. Location can be any of the Cloud Storage + * regions specified in lower case format. For example, `us-east1`, + * `us-west1`. + * + * Generated from protobuf field repeated string locations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/TrialConfig.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/TrialConfig.php new file mode 100644 index 000000000000..df28258e6a9a --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/TrialConfig.php @@ -0,0 +1,77 @@ +google.storage.control.v2.IntelligenceConfig.TrialConfig + */ +class TrialConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The time at which the trial expires. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $expire_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $expire_time + * Output only. The time at which the trial expires. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The time at which the trial expires. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getExpireTime() + { + return $this->expire_time; + } + + public function hasExpireTime() + { + return isset($this->expire_time); + } + + public function clearExpireTime() + { + unset($this->expire_time); + } + + /** + * Output only. The time at which the trial expires. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setExpireTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->expire_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding.php new file mode 100644 index 000000000000..b5cd9a1768ec --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding.php @@ -0,0 +1,594 @@ +google.storage.control.v2.IntelligenceFinding + */ +class IntelligenceFinding extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of `IntelligenceFinding`. + * Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. A short description about the finding. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $description = ''; + /** + * Output only. Type of this finding. + * + * Generated from protobuf field .google.storage.control.v2.FindingType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $type = 0; + /** + * Output only. Category of this finding. + * + * Generated from protobuf field .google.storage.control.v2.FindingCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $category = 0; + /** + * Output only. Severity of the finding. + * + * Generated from protobuf field .google.storage.control.v2.FindingSeverity severity = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $severity = 0; + /** + * Output only. The time at which the finding was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which the finding was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. The fully qualified resource name of the resource that this + * `IntelligenceFinding` applies to. eg: + * - `storage.googleapis.com/projects/_/buckets/b1` + * - `cloudresourecemanager.googleapis.com/projects/p1` + * + * Generated from protobuf field string target_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target_resource = ''; + /** + * Output only. Contains GCP resource names that are + * relevant to this `IntelligenceFinding`. The `target_resource` is also added + * as part of `associated_resources`. eg: + * - `storage.googleapis.com/projects/_/buckets/b1` + * - `cloudresourecemanager.googleapis.com/projects/p1` + * + * Generated from protobuf field repeated string associated_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $associated_resources; + /** + * Output only. The time interval during which the underlying data was used to + * generate this `IntelligenceFinding`. + * + * Generated from protobuf field .google.type.Interval observation_period = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $observation_period = null; + protected $intelligence_finding_details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of `IntelligenceFinding`. + * Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` + * @type string $description + * Output only. A short description about the finding. + * @type int $type + * Output only. Type of this finding. + * @type int $category + * Output only. Category of this finding. + * @type int $severity + * Output only. Severity of the finding. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which the finding was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which the finding was last updated. + * @type string $target_resource + * Output only. The fully qualified resource name of the resource that this + * `IntelligenceFinding` applies to. eg: + * - `storage.googleapis.com/projects/_/buckets/b1` + * - `cloudresourecemanager.googleapis.com/projects/p1` + * @type string[] $associated_resources + * Output only. Contains GCP resource names that are + * relevant to this `IntelligenceFinding`. The `target_resource` is also added + * as part of `associated_resources`. eg: + * - `storage.googleapis.com/projects/_/buckets/b1` + * - `cloudresourecemanager.googleapis.com/projects/p1` + * @type \Google\Type\Interval $observation_period + * Output only. The time interval during which the underlying data was used to + * generate this `IntelligenceFinding`. + * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike $coldline_and_archival_storage_operations_spike + * Output only. `IntelligenceFinding` about a spike in Class A/B operations + * on Coldline or Archive Cloud Storage objects. + * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike $throttled_requests_spike + * Output only. `IntelligenceFinding` about a spike in throttled requests + * (429 errors) within a project. + * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike $cross_region_egress_spike + * Output only. `IntelligenceFinding` about a spike in cross-region egress. + * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\StorageGrowthAboveTrend $storage_growth_above_trend + * Output only. `IntelligenceFinding` about growth in storage above the + * expected trend. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of `IntelligenceFinding`. + * Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of `IntelligenceFinding`. + * Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. A short description about the finding. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Output only. A short description about the finding. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. Type of this finding. + * + * Generated from protobuf field .google.storage.control.v2.FindingType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Output only. Type of this finding. + * + * Generated from protobuf field .google.storage.control.v2.FindingType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\FindingType::class); + $this->type = $var; + + return $this; + } + + /** + * Output only. Category of this finding. + * + * Generated from protobuf field .google.storage.control.v2.FindingCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getCategory() + { + return $this->category; + } + + /** + * Output only. Category of this finding. + * + * Generated from protobuf field .google.storage.control.v2.FindingCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setCategory($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\FindingCategory::class); + $this->category = $var; + + return $this; + } + + /** + * Output only. Severity of the finding. + * + * Generated from protobuf field .google.storage.control.v2.FindingSeverity severity = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getSeverity() + { + return $this->severity; + } + + /** + * Output only. Severity of the finding. + * + * Generated from protobuf field .google.storage.control.v2.FindingSeverity severity = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setSeverity($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\FindingSeverity::class); + $this->severity = $var; + + return $this; + } + + /** + * Output only. The time at which the finding was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time at which the finding was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time at which the finding was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time at which the finding was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. The fully qualified resource name of the resource that this + * `IntelligenceFinding` applies to. eg: + * - `storage.googleapis.com/projects/_/buckets/b1` + * - `cloudresourecemanager.googleapis.com/projects/p1` + * + * Generated from protobuf field string target_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTargetResource() + { + return $this->target_resource; + } + + /** + * Output only. The fully qualified resource name of the resource that this + * `IntelligenceFinding` applies to. eg: + * - `storage.googleapis.com/projects/_/buckets/b1` + * - `cloudresourecemanager.googleapis.com/projects/p1` + * + * Generated from protobuf field string target_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTargetResource($var) + { + GPBUtil::checkString($var, True); + $this->target_resource = $var; + + return $this; + } + + /** + * Output only. Contains GCP resource names that are + * relevant to this `IntelligenceFinding`. The `target_resource` is also added + * as part of `associated_resources`. eg: + * - `storage.googleapis.com/projects/_/buckets/b1` + * - `cloudresourecemanager.googleapis.com/projects/p1` + * + * Generated from protobuf field repeated string associated_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getAssociatedResources() + { + return $this->associated_resources; + } + + /** + * Output only. Contains GCP resource names that are + * relevant to this `IntelligenceFinding`. The `target_resource` is also added + * as part of `associated_resources`. eg: + * - `storage.googleapis.com/projects/_/buckets/b1` + * - `cloudresourecemanager.googleapis.com/projects/p1` + * + * Generated from protobuf field repeated string associated_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string[] $var + * @return $this + */ + public function setAssociatedResources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->associated_resources = $arr; + + return $this; + } + + /** + * Output only. The time interval during which the underlying data was used to + * generate this `IntelligenceFinding`. + * + * Generated from protobuf field .google.type.Interval observation_period = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Type\Interval|null + */ + public function getObservationPeriod() + { + return $this->observation_period; + } + + public function hasObservationPeriod() + { + return isset($this->observation_period); + } + + public function clearObservationPeriod() + { + unset($this->observation_period); + } + + /** + * Output only. The time interval during which the underlying data was used to + * generate this `IntelligenceFinding`. + * + * Generated from protobuf field .google.type.Interval observation_period = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setObservationPeriod($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->observation_period = $var; + + return $this; + } + + /** + * Output only. `IntelligenceFinding` about a spike in Class A/B operations + * on Coldline or Archive Cloud Storage objects. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike coldline_and_archival_storage_operations_spike = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike|null + */ + public function getColdlineAndArchivalStorageOperationsSpike() + { + return $this->readOneof(11); + } + + public function hasColdlineAndArchivalStorageOperationsSpike() + { + return $this->hasOneof(11); + } + + /** + * Output only. `IntelligenceFinding` about a spike in Class A/B operations + * on Coldline or Archive Cloud Storage objects. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike coldline_and_archival_storage_operations_spike = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike $var + * @return $this + */ + public function setColdlineAndArchivalStorageOperationsSpike($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * Output only. `IntelligenceFinding` about a spike in throttled requests + * (429 errors) within a project. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike throttled_requests_spike = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike|null + */ + public function getThrottledRequestsSpike() + { + return $this->readOneof(12); + } + + public function hasThrottledRequestsSpike() + { + return $this->hasOneof(12); + } + + /** + * Output only. `IntelligenceFinding` about a spike in throttled requests + * (429 errors) within a project. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike throttled_requests_spike = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike $var + * @return $this + */ + public function setThrottledRequestsSpike($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Output only. `IntelligenceFinding` about a spike in cross-region egress. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike cross_region_egress_spike = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike|null + */ + public function getCrossRegionEgressSpike() + { + return $this->readOneof(13); + } + + public function hasCrossRegionEgressSpike() + { + return $this->hasOneof(13); + } + + /** + * Output only. `IntelligenceFinding` about a spike in cross-region egress. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike cross_region_egress_spike = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike $var + * @return $this + */ + public function setCrossRegionEgressSpike($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Output only. `IntelligenceFinding` about growth in storage above the + * expected trend. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrend storage_growth_above_trend = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Storage\Control\V2\IntelligenceFinding\StorageGrowthAboveTrend|null + */ + public function getStorageGrowthAboveTrend() + { + return $this->readOneof(14); + } + + public function hasStorageGrowthAboveTrend() + { + return $this->hasOneof(14); + } + + /** + * Output only. `IntelligenceFinding` about growth in storage above the + * expected trend. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrend storage_growth_above_trend = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\StorageGrowthAboveTrend $var + * @return $this + */ + public function setStorageGrowthAboveTrend($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\StorageGrowthAboveTrend::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * @return string + */ + public function getIntelligenceFindingDetails() + { + return $this->whichOneof("intelligence_finding_details"); + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike.php new file mode 100644 index 000000000000..e14c8e9f9f6b --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike.php @@ -0,0 +1,142 @@ +google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike + */ +class ColdlineAndArchivalStorageOperationsSpike extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The percentage increase in operations across the project. + * + * Generated from protobuf field double percentage_increase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $percentage_increase = 0.0; + /** + * Output only. The total count of operations across the project. + * + * Generated from protobuf field int64 total_operations_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $total_operations_count = 0; + /** + * Output only. A list of the top buckets driving the increase in + * operations. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $top_buckets; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $percentage_increase + * Output only. The percentage increase in operations across the project. + * @type int|string $total_operations_count + * Output only. The total count of operations across the project. + * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution[] $top_buckets + * Output only. A list of the top buckets driving the increase in + * operations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The percentage increase in operations across the project. + * + * Generated from protobuf field double percentage_increase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getPercentageIncrease() + { + return $this->percentage_increase; + } + + /** + * Output only. The percentage increase in operations across the project. + * + * Generated from protobuf field double percentage_increase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setPercentageIncrease($var) + { + GPBUtil::checkDouble($var); + $this->percentage_increase = $var; + + return $this; + } + + /** + * Output only. The total count of operations across the project. + * + * Generated from protobuf field int64 total_operations_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getTotalOperationsCount() + { + return $this->total_operations_count; + } + + /** + * Output only. The total count of operations across the project. + * + * Generated from protobuf field int64 total_operations_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setTotalOperationsCount($var) + { + GPBUtil::checkInt64($var); + $this->total_operations_count = $var; + + return $this; + } + + /** + * Output only. A list of the top buckets driving the increase in + * operations. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution> + */ + public function getTopBuckets() + { + return $this->top_buckets; + } + + /** + * Output only. A list of the top buckets driving the increase in + * operations. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution[] $var + * @return $this + */ + public function setTopBuckets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution::class); + $this->top_buckets = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution.php new file mode 100644 index 000000000000..2e764b7601cb --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution.php @@ -0,0 +1,213 @@ +google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution + */ +class BucketContribution extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the bucket. + * + * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $bucket = ''; + /** + * Output only. The percentage increase in operations for the bucket. + * + * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $percentage_increase = 0.0; + /** + * Output only. The total count of operations for the bucket. + * + * Generated from protobuf field int64 total_operations_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $total_operations_count = 0; + protected $details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $bucket + * Output only. The name of the bucket. + * @type float $percentage_increase + * Output only. The percentage increase in operations for the bucket. + * @type int|string $total_operations_count + * Output only. The total count of operations for the bucket. + * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution\Contribution $contribution + * Output only. The details about the contribution of the bucket. + * @type \Google\Rpc\Status $error + * Output only. The error related to accessing the details about the + * contribution of the bucket. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the bucket. + * + * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getBucket() + { + return $this->bucket; + } + + /** + * Output only. The name of the bucket. + * + * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setBucket($var) + { + GPBUtil::checkString($var, True); + $this->bucket = $var; + + return $this; + } + + /** + * Output only. The percentage increase in operations for the bucket. + * + * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getPercentageIncrease() + { + return $this->percentage_increase; + } + + /** + * Output only. The percentage increase in operations for the bucket. + * + * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setPercentageIncrease($var) + { + GPBUtil::checkDouble($var); + $this->percentage_increase = $var; + + return $this; + } + + /** + * Output only. The total count of operations for the bucket. + * + * Generated from protobuf field int64 total_operations_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getTotalOperationsCount() + { + return $this->total_operations_count; + } + + /** + * Output only. The total count of operations for the bucket. + * + * Generated from protobuf field int64 total_operations_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setTotalOperationsCount($var) + { + GPBUtil::checkInt64($var); + $this->total_operations_count = $var; + + return $this; + } + + /** + * Output only. The details about the contribution of the bucket. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.Contribution contribution = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution\Contribution|null + */ + public function getContribution() + { + return $this->readOneof(4); + } + + public function hasContribution() + { + return $this->hasOneof(4); + } + + /** + * Output only. The details about the contribution of the bucket. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.Contribution contribution = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution\Contribution $var + * @return $this + */ + public function setContribution($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution\Contribution::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Output only. The error related to accessing the details about the + * contribution of the bucket. + * + * Generated from protobuf field .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Rpc\Status|null + */ + public function getError() + { + return $this->readOneof(5); + } + + public function hasError() + { + return $this->hasOneof(5); + } + + /** + * Output only. The error related to accessing the details about the + * contribution of the bucket. + * + * Generated from protobuf field .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * @return string + */ + public function getDetails() + { + return $this->whichOneof("details"); + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution/Contribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution/Contribution.php new file mode 100644 index 000000000000..654bb2cc72ea --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution/Contribution.php @@ -0,0 +1,72 @@ +google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.Contribution + */ +class Contribution extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. A list of the top object prefixes driving the increase + * in operations. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.Contribution.PrefixContribution top_prefixes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $top_prefixes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution\Contribution\PrefixContribution[] $top_prefixes + * Output only. A list of the top object prefixes driving the increase + * in operations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. A list of the top object prefixes driving the increase + * in operations. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.Contribution.PrefixContribution top_prefixes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution\Contribution\PrefixContribution> + */ + public function getTopPrefixes() + { + return $this->top_prefixes; + } + + /** + * Output only. A list of the top object prefixes driving the increase + * in operations. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.Contribution.PrefixContribution top_prefixes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution\Contribution\PrefixContribution[] $var + * @return $this + */ + public function setTopPrefixes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution\Contribution\PrefixContribution::class); + $this->top_prefixes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution/Contribution/PrefixContribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution/Contribution/PrefixContribution.php new file mode 100644 index 000000000000..c6d5205647fe --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution/Contribution/PrefixContribution.php @@ -0,0 +1,143 @@ +google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.Contribution.PrefixContribution + */ +class PrefixContribution extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The object prefix. + * Format: `a/b/c`, 'a/b/d', etc. + * + * Generated from protobuf field string prefix = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $prefix = ''; + /** + * Output only. The percentage increase in operations for the object + * prefix. + * + * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $percentage_increase = 0.0; + /** + * Output only. The total count of operations for the object prefix. + * + * Generated from protobuf field int64 total_operations_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $total_operations_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $prefix + * Output only. The object prefix. + * Format: `a/b/c`, 'a/b/d', etc. + * @type float $percentage_increase + * Output only. The percentage increase in operations for the object + * prefix. + * @type int|string $total_operations_count + * Output only. The total count of operations for the object prefix. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The object prefix. + * Format: `a/b/c`, 'a/b/d', etc. + * + * Generated from protobuf field string prefix = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPrefix() + { + return $this->prefix; + } + + /** + * Output only. The object prefix. + * Format: `a/b/c`, 'a/b/d', etc. + * + * Generated from protobuf field string prefix = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPrefix($var) + { + GPBUtil::checkString($var, True); + $this->prefix = $var; + + return $this; + } + + /** + * Output only. The percentage increase in operations for the object + * prefix. + * + * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getPercentageIncrease() + { + return $this->percentage_increase; + } + + /** + * Output only. The percentage increase in operations for the object + * prefix. + * + * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setPercentageIncrease($var) + { + GPBUtil::checkDouble($var); + $this->percentage_increase = $var; + + return $this; + } + + /** + * Output only. The total count of operations for the object prefix. + * + * Generated from protobuf field int64 total_operations_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getTotalOperationsCount() + { + return $this->total_operations_count; + } + + /** + * Output only. The total count of operations for the object prefix. + * + * Generated from protobuf field int64 total_operations_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setTotalOperationsCount($var) + { + GPBUtil::checkInt64($var); + $this->total_operations_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike.php new file mode 100644 index 000000000000..2fdffc786f54 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike.php @@ -0,0 +1,149 @@ +google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike + */ +class CrossRegionEgressSpike extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The total cross-region egress volume in bytes across the + * project. + * + * Generated from protobuf field int64 total_egress_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $total_egress_bytes = 0; + /** + * Output only. The percentage increase in cross-region egress across the + * project. + * + * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $percentage_increase = 0.0; + /** + * Output only. A list of top buckets driving the increase in cross-region + * egress. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $top_buckets; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $total_egress_bytes + * Output only. The total cross-region egress volume in bytes across the + * project. + * @type float $percentage_increase + * Output only. The percentage increase in cross-region egress across the + * project. + * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution[] $top_buckets + * Output only. A list of top buckets driving the increase in cross-region + * egress. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The total cross-region egress volume in bytes across the + * project. + * + * Generated from protobuf field int64 total_egress_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getTotalEgressBytes() + { + return $this->total_egress_bytes; + } + + /** + * Output only. The total cross-region egress volume in bytes across the + * project. + * + * Generated from protobuf field int64 total_egress_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setTotalEgressBytes($var) + { + GPBUtil::checkInt64($var); + $this->total_egress_bytes = $var; + + return $this; + } + + /** + * Output only. The percentage increase in cross-region egress across the + * project. + * + * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getPercentageIncrease() + { + return $this->percentage_increase; + } + + /** + * Output only. The percentage increase in cross-region egress across the + * project. + * + * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setPercentageIncrease($var) + { + GPBUtil::checkDouble($var); + $this->percentage_increase = $var; + + return $this; + } + + /** + * Output only. A list of top buckets driving the increase in cross-region + * egress. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution> + */ + public function getTopBuckets() + { + return $this->top_buckets; + } + + /** + * Output only. A list of top buckets driving the increase in cross-region + * egress. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution[] $var + * @return $this + */ + public function setTopBuckets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution::class); + $this->top_buckets = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution.php new file mode 100644 index 000000000000..fe0b3f5af9e5 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution.php @@ -0,0 +1,221 @@ +google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution + */ +class BucketContribution extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the bucket. + * + * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $bucket = ''; + /** + * Output only. The total cross-region egress volume in bytes for the + * bucket. + * + * Generated from protobuf field int64 total_egress_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $total_egress_bytes = 0; + /** + * Output only. The percentage increase in cross-region egress for the + * bucket. + * + * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $percentage_increase = 0.0; + protected $details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $bucket + * Output only. The name of the bucket. + * @type int|string $total_egress_bytes + * Output only. The total cross-region egress volume in bytes for the + * bucket. + * @type float $percentage_increase + * Output only. The percentage increase in cross-region egress for the + * bucket. + * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution\Contribution $contribution + * Output only. The details about the contribution of the bucket. + * @type \Google\Rpc\Status $error + * Output only. The error related to accessing the details about the + * contribution of the bucket. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the bucket. + * + * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getBucket() + { + return $this->bucket; + } + + /** + * Output only. The name of the bucket. + * + * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setBucket($var) + { + GPBUtil::checkString($var, True); + $this->bucket = $var; + + return $this; + } + + /** + * Output only. The total cross-region egress volume in bytes for the + * bucket. + * + * Generated from protobuf field int64 total_egress_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getTotalEgressBytes() + { + return $this->total_egress_bytes; + } + + /** + * Output only. The total cross-region egress volume in bytes for the + * bucket. + * + * Generated from protobuf field int64 total_egress_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setTotalEgressBytes($var) + { + GPBUtil::checkInt64($var); + $this->total_egress_bytes = $var; + + return $this; + } + + /** + * Output only. The percentage increase in cross-region egress for the + * bucket. + * + * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getPercentageIncrease() + { + return $this->percentage_increase; + } + + /** + * Output only. The percentage increase in cross-region egress for the + * bucket. + * + * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setPercentageIncrease($var) + { + GPBUtil::checkDouble($var); + $this->percentage_increase = $var; + + return $this; + } + + /** + * Output only. The details about the contribution of the bucket. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution contribution = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution\Contribution|null + */ + public function getContribution() + { + return $this->readOneof(4); + } + + public function hasContribution() + { + return $this->hasOneof(4); + } + + /** + * Output only. The details about the contribution of the bucket. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution contribution = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution\Contribution $var + * @return $this + */ + public function setContribution($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution\Contribution::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Output only. The error related to accessing the details about the + * contribution of the bucket. + * + * Generated from protobuf field .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Rpc\Status|null + */ + public function getError() + { + return $this->readOneof(5); + } + + public function hasError() + { + return $this->hasOneof(5); + } + + /** + * Output only. The error related to accessing the details about the + * contribution of the bucket. + * + * Generated from protobuf field .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * @return string + */ + public function getDetails() + { + return $this->whichOneof("details"); + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution/Contribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution/Contribution.php new file mode 100644 index 000000000000..c1171fae3f6b --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution/Contribution.php @@ -0,0 +1,72 @@ +google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution + */ +class Contribution extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. A list of the top object prefixes driving the increase + * in cross-region egress. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution.PrefixContribution top_prefixes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $top_prefixes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution\Contribution\PrefixContribution[] $top_prefixes + * Output only. A list of the top object prefixes driving the increase + * in cross-region egress. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. A list of the top object prefixes driving the increase + * in cross-region egress. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution.PrefixContribution top_prefixes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution\Contribution\PrefixContribution> + */ + public function getTopPrefixes() + { + return $this->top_prefixes; + } + + /** + * Output only. A list of the top object prefixes driving the increase + * in cross-region egress. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution.PrefixContribution top_prefixes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution\Contribution\PrefixContribution[] $var + * @return $this + */ + public function setTopPrefixes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution\Contribution\PrefixContribution::class); + $this->top_prefixes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution/Contribution/PrefixContribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution/Contribution/PrefixContribution.php new file mode 100644 index 000000000000..0f3fb5daa146 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution/Contribution/PrefixContribution.php @@ -0,0 +1,148 @@ +google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution.PrefixContribution + */ +class PrefixContribution extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The object prefix. + * Format: `a/b/c`, 'a/b/d', etc. + * + * Generated from protobuf field string prefix = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $prefix = ''; + /** + * Output only. The total cross-region egress volume in bytes from the + * object prefix. + * + * Generated from protobuf field int64 total_egress_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $total_egress_bytes = 0; + /** + * Output only. The percentage increase in cross-region egress for the + * object prefix. + * + * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $percentage_increase = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $prefix + * Output only. The object prefix. + * Format: `a/b/c`, 'a/b/d', etc. + * @type int|string $total_egress_bytes + * Output only. The total cross-region egress volume in bytes from the + * object prefix. + * @type float $percentage_increase + * Output only. The percentage increase in cross-region egress for the + * object prefix. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The object prefix. + * Format: `a/b/c`, 'a/b/d', etc. + * + * Generated from protobuf field string prefix = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPrefix() + { + return $this->prefix; + } + + /** + * Output only. The object prefix. + * Format: `a/b/c`, 'a/b/d', etc. + * + * Generated from protobuf field string prefix = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPrefix($var) + { + GPBUtil::checkString($var, True); + $this->prefix = $var; + + return $this; + } + + /** + * Output only. The total cross-region egress volume in bytes from the + * object prefix. + * + * Generated from protobuf field int64 total_egress_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getTotalEgressBytes() + { + return $this->total_egress_bytes; + } + + /** + * Output only. The total cross-region egress volume in bytes from the + * object prefix. + * + * Generated from protobuf field int64 total_egress_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setTotalEgressBytes($var) + { + GPBUtil::checkInt64($var); + $this->total_egress_bytes = $var; + + return $this; + } + + /** + * Output only. The percentage increase in cross-region egress for the + * object prefix. + * + * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getPercentageIncrease() + { + return $this->percentage_increase; + } + + /** + * Output only. The percentage increase in cross-region egress for the + * object prefix. + * + * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setPercentageIncrease($var) + { + GPBUtil::checkDouble($var); + $this->percentage_increase = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/StorageGrowthAboveTrend.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/StorageGrowthAboveTrend.php new file mode 100644 index 000000000000..beb651194f74 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/StorageGrowthAboveTrend.php @@ -0,0 +1,140 @@ +google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrend + */ +class StorageGrowthAboveTrend extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The total storage growth in bytes. + * + * Generated from protobuf field int64 total_storage_growth_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $total_storage_growth_bytes = 0; + /** + * Output only. The percentage increase in storage growth. + * + * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $percentage_increase = 0.0; + /** + * Output only. A list of top buckets driving the increase in storage + * growth. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrend.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $top_buckets; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $total_storage_growth_bytes + * Output only. The total storage growth in bytes. + * @type float $percentage_increase + * Output only. The percentage increase in storage growth. + * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\StorageGrowthAboveTrend\BucketContribution[] $top_buckets + * Output only. A list of top buckets driving the increase in storage + * growth. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The total storage growth in bytes. + * + * Generated from protobuf field int64 total_storage_growth_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getTotalStorageGrowthBytes() + { + return $this->total_storage_growth_bytes; + } + + /** + * Output only. The total storage growth in bytes. + * + * Generated from protobuf field int64 total_storage_growth_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setTotalStorageGrowthBytes($var) + { + GPBUtil::checkInt64($var); + $this->total_storage_growth_bytes = $var; + + return $this; + } + + /** + * Output only. The percentage increase in storage growth. + * + * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getPercentageIncrease() + { + return $this->percentage_increase; + } + + /** + * Output only. The percentage increase in storage growth. + * + * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setPercentageIncrease($var) + { + GPBUtil::checkDouble($var); + $this->percentage_increase = $var; + + return $this; + } + + /** + * Output only. A list of top buckets driving the increase in storage + * growth. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrend.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Storage\Control\V2\IntelligenceFinding\StorageGrowthAboveTrend\BucketContribution> + */ + public function getTopBuckets() + { + return $this->top_buckets; + } + + /** + * Output only. A list of top buckets driving the increase in storage + * growth. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrend.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\StorageGrowthAboveTrend\BucketContribution[] $var + * @return $this + */ + public function setTopBuckets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\StorageGrowthAboveTrend\BucketContribution::class); + $this->top_buckets = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/StorageGrowthAboveTrend/BucketContribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/StorageGrowthAboveTrend/BucketContribution.php new file mode 100644 index 000000000000..35aa541e0bba --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/StorageGrowthAboveTrend/BucketContribution.php @@ -0,0 +1,180 @@ +google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrend.BucketContribution + */ +class BucketContribution extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the bucket. + * + * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $bucket = ''; + /** + * Output only. The total storage growth in bytes for the bucket. + * + * Generated from protobuf field int64 total_storage_growth_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $total_storage_growth_bytes = 0; + /** + * Output only. The percentage increase in storage growth for the bucket. + * + * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $percentage_increase = 0.0; + protected $details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $bucket + * Output only. The name of the bucket. + * @type int|string $total_storage_growth_bytes + * Output only. The total storage growth in bytes for the bucket. + * @type float $percentage_increase + * Output only. The percentage increase in storage growth for the bucket. + * @type \Google\Rpc\Status $error + * Output only. The error related to accessing the details about the + * contribution of the bucket. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the bucket. + * + * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getBucket() + { + return $this->bucket; + } + + /** + * Output only. The name of the bucket. + * + * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setBucket($var) + { + GPBUtil::checkString($var, True); + $this->bucket = $var; + + return $this; + } + + /** + * Output only. The total storage growth in bytes for the bucket. + * + * Generated from protobuf field int64 total_storage_growth_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getTotalStorageGrowthBytes() + { + return $this->total_storage_growth_bytes; + } + + /** + * Output only. The total storage growth in bytes for the bucket. + * + * Generated from protobuf field int64 total_storage_growth_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setTotalStorageGrowthBytes($var) + { + GPBUtil::checkInt64($var); + $this->total_storage_growth_bytes = $var; + + return $this; + } + + /** + * Output only. The percentage increase in storage growth for the bucket. + * + * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getPercentageIncrease() + { + return $this->percentage_increase; + } + + /** + * Output only. The percentage increase in storage growth for the bucket. + * + * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setPercentageIncrease($var) + { + GPBUtil::checkDouble($var); + $this->percentage_increase = $var; + + return $this; + } + + /** + * Output only. The error related to accessing the details about the + * contribution of the bucket. + * + * Generated from protobuf field .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Rpc\Status|null + */ + public function getError() + { + return $this->readOneof(5); + } + + public function hasError() + { + return $this->hasOneof(5); + } + + /** + * Output only. The error related to accessing the details about the + * contribution of the bucket. + * + * Generated from protobuf field .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * @return string + */ + public function getDetails() + { + return $this->whichOneof("details"); + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike.php new file mode 100644 index 000000000000..a030088c5041 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike.php @@ -0,0 +1,145 @@ +google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike + */ +class ThrottledRequestSpike extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The count of throttled requests across the project. + * + * Generated from protobuf field int64 throttled_requests = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $throttled_requests = 0; + /** + * Output only. The percentage increase in throttled requests across the + * project. + * + * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $percentage_increase = 0.0; + /** + * Output only. A list of top buckets driving the increase in throttled + * requests. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $top_buckets; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $throttled_requests + * Output only. The count of throttled requests across the project. + * @type float $percentage_increase + * Output only. The percentage increase in throttled requests across the + * project. + * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution[] $top_buckets + * Output only. A list of top buckets driving the increase in throttled + * requests. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The count of throttled requests across the project. + * + * Generated from protobuf field int64 throttled_requests = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getThrottledRequests() + { + return $this->throttled_requests; + } + + /** + * Output only. The count of throttled requests across the project. + * + * Generated from protobuf field int64 throttled_requests = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setThrottledRequests($var) + { + GPBUtil::checkInt64($var); + $this->throttled_requests = $var; + + return $this; + } + + /** + * Output only. The percentage increase in throttled requests across the + * project. + * + * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getPercentageIncrease() + { + return $this->percentage_increase; + } + + /** + * Output only. The percentage increase in throttled requests across the + * project. + * + * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setPercentageIncrease($var) + { + GPBUtil::checkDouble($var); + $this->percentage_increase = $var; + + return $this; + } + + /** + * Output only. A list of top buckets driving the increase in throttled + * requests. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution> + */ + public function getTopBuckets() + { + return $this->top_buckets; + } + + /** + * Output only. A list of top buckets driving the increase in throttled + * requests. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution[] $var + * @return $this + */ + public function setTopBuckets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution::class); + $this->top_buckets = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution.php new file mode 100644 index 000000000000..5852e349655d --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution.php @@ -0,0 +1,217 @@ +google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution + */ +class BucketContribution extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the bucket. + * + * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $bucket = ''; + /** + * Output only. The count of throttled requests for the bucket. + * + * Generated from protobuf field int64 throttled_requests = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $throttled_requests = 0; + /** + * Output only. The percentage increase in throttled requests for the + * bucket. + * + * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $percentage_increase = 0.0; + protected $details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $bucket + * Output only. The name of the bucket. + * @type int|string $throttled_requests + * Output only. The count of throttled requests for the bucket. + * @type float $percentage_increase + * Output only. The percentage increase in throttled requests for the + * bucket. + * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution\Contribution $contribution + * Output only. The details about the contribution of the bucket. + * @type \Google\Rpc\Status $error + * Output only. The error related to accessing the details about the + * contribution of the bucket. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the bucket. + * + * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getBucket() + { + return $this->bucket; + } + + /** + * Output only. The name of the bucket. + * + * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setBucket($var) + { + GPBUtil::checkString($var, True); + $this->bucket = $var; + + return $this; + } + + /** + * Output only. The count of throttled requests for the bucket. + * + * Generated from protobuf field int64 throttled_requests = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getThrottledRequests() + { + return $this->throttled_requests; + } + + /** + * Output only. The count of throttled requests for the bucket. + * + * Generated from protobuf field int64 throttled_requests = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setThrottledRequests($var) + { + GPBUtil::checkInt64($var); + $this->throttled_requests = $var; + + return $this; + } + + /** + * Output only. The percentage increase in throttled requests for the + * bucket. + * + * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getPercentageIncrease() + { + return $this->percentage_increase; + } + + /** + * Output only. The percentage increase in throttled requests for the + * bucket. + * + * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setPercentageIncrease($var) + { + GPBUtil::checkDouble($var); + $this->percentage_increase = $var; + + return $this; + } + + /** + * Output only. The details about the contribution of the bucket. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution contribution = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution\Contribution|null + */ + public function getContribution() + { + return $this->readOneof(4); + } + + public function hasContribution() + { + return $this->hasOneof(4); + } + + /** + * Output only. The details about the contribution of the bucket. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution contribution = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution\Contribution $var + * @return $this + */ + public function setContribution($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution\Contribution::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Output only. The error related to accessing the details about the + * contribution of the bucket. + * + * Generated from protobuf field .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Rpc\Status|null + */ + public function getError() + { + return $this->readOneof(5); + } + + public function hasError() + { + return $this->hasOneof(5); + } + + /** + * Output only. The error related to accessing the details about the + * contribution of the bucket. + * + * Generated from protobuf field .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * @return string + */ + public function getDetails() + { + return $this->whichOneof("details"); + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution/Contribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution/Contribution.php new file mode 100644 index 000000000000..bcc955077a85 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution/Contribution.php @@ -0,0 +1,72 @@ +google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution + */ +class Contribution extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. A list of top object prefixes driving the increase in + * throttled requests. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution.PrefixContribution top_prefixes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $top_prefixes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution\Contribution\PrefixContribution[] $top_prefixes + * Output only. A list of top object prefixes driving the increase in + * throttled requests. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. A list of top object prefixes driving the increase in + * throttled requests. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution.PrefixContribution top_prefixes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution\Contribution\PrefixContribution> + */ + public function getTopPrefixes() + { + return $this->top_prefixes; + } + + /** + * Output only. A list of top object prefixes driving the increase in + * throttled requests. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution.PrefixContribution top_prefixes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution\Contribution\PrefixContribution[] $var + * @return $this + */ + public function setTopPrefixes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution\Contribution\PrefixContribution::class); + $this->top_prefixes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution/Contribution/PrefixContribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution/Contribution/PrefixContribution.php new file mode 100644 index 000000000000..ca9457f418c1 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution/Contribution/PrefixContribution.php @@ -0,0 +1,143 @@ +google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution.PrefixContribution + */ +class PrefixContribution extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The object prefix. + * Format: `a/b/c`, 'a/b/d', etc. + * + * Generated from protobuf field string prefix = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $prefix = ''; + /** + * Output only. The count of throttled requests for the object prefix. + * + * Generated from protobuf field int64 throttled_requests = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $throttled_requests = 0; + /** + * Output only. The percentage increase in throttled requests for the + * object prefix. + * + * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $percentage_increase = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $prefix + * Output only. The object prefix. + * Format: `a/b/c`, 'a/b/d', etc. + * @type int|string $throttled_requests + * Output only. The count of throttled requests for the object prefix. + * @type float $percentage_increase + * Output only. The percentage increase in throttled requests for the + * object prefix. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The object prefix. + * Format: `a/b/c`, 'a/b/d', etc. + * + * Generated from protobuf field string prefix = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPrefix() + { + return $this->prefix; + } + + /** + * Output only. The object prefix. + * Format: `a/b/c`, 'a/b/d', etc. + * + * Generated from protobuf field string prefix = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPrefix($var) + { + GPBUtil::checkString($var, True); + $this->prefix = $var; + + return $this; + } + + /** + * Output only. The count of throttled requests for the object prefix. + * + * Generated from protobuf field int64 throttled_requests = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getThrottledRequests() + { + return $this->throttled_requests; + } + + /** + * Output only. The count of throttled requests for the object prefix. + * + * Generated from protobuf field int64 throttled_requests = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setThrottledRequests($var) + { + GPBUtil::checkInt64($var); + $this->throttled_requests = $var; + + return $this; + } + + /** + * Output only. The percentage increase in throttled requests for the + * object prefix. + * + * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getPercentageIncrease() + { + return $this->percentage_increase; + } + + /** + * Output only. The percentage increase in throttled requests for the + * object prefix. + * + * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setPercentageIncrease($var) + { + GPBUtil::checkDouble($var); + $this->percentage_increase = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFindingRevision.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFindingRevision.php new file mode 100644 index 000000000000..795743e540e2 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFindingRevision.php @@ -0,0 +1,172 @@ +google.storage.control.v2.IntelligenceFindingRevision + */ +class IntelligenceFindingRevision extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of `IntelligenceFindingRevision`. + * Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. The snapshot of the `IntelligenceFinding` at the time the + * revision was created. This field contains the full finding details as they + * existed for the revision. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $snapshot = null; + /** + * Output only. The timestamp when the revision was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name of `IntelligenceFindingRevision`. + * Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` + * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding $snapshot + * Output only. The snapshot of the `IntelligenceFinding` at the time the + * revision was created. This field contains the full finding details as they + * existed for the revision. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The timestamp when the revision was created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of `IntelligenceFindingRevision`. + * Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The resource name of `IntelligenceFindingRevision`. + * Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The snapshot of the `IntelligenceFinding` at the time the + * revision was created. This field contains the full finding details as they + * existed for the revision. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Storage\Control\V2\IntelligenceFinding|null + */ + public function getSnapshot() + { + return $this->snapshot; + } + + public function hasSnapshot() + { + return isset($this->snapshot); + } + + public function clearSnapshot() + { + unset($this->snapshot); + } + + /** + * Output only. The snapshot of the `IntelligenceFinding` at the time the + * revision was created. This field contains the full finding details as they + * existed for the revision. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding $var + * @return $this + */ + public function setSnapshot($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceFinding::class); + $this->snapshot = $var; + + return $this; + } + + /** + * Output only. The timestamp when the revision was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The timestamp when the revision was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListAnywhereCachesRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListAnywhereCachesRequest.php new file mode 100644 index 000000000000..f7edaa73eaff --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListAnywhereCachesRequest.php @@ -0,0 +1,195 @@ +google.storage.control.v2.ListAnywhereCachesRequest + */ +class ListAnywhereCachesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The bucket to which this cache belongs. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Maximum number of caches to return in a single response. + * The service will use this parameter or 1,000 items, whichever is smaller. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A previously-returned page token representing part of the larger set of + * results to view. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $parent Required. The bucket to which this cache belongs. Please see + * {@see StorageControlClient::bucketName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\ListAnywhereCachesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The bucket to which this cache belongs. + * @type int $page_size + * Maximum number of caches to return in a single response. + * The service will use this parameter or 1,000 items, whichever is smaller. + * @type string $page_token + * A previously-returned page token representing part of the larger set of + * results to view. + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The bucket to which this cache belongs. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The bucket to which this cache belongs. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Maximum number of caches to return in a single response. + * The service will use this parameter or 1,000 items, whichever is smaller. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Maximum number of caches to return in a single response. + * The service will use this parameter or 1,000 items, whichever is smaller. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A previously-returned page token representing part of the larger set of + * results to view. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A previously-returned page token representing part of the larger set of + * results to view. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListAnywhereCachesResponse.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListAnywhereCachesResponse.php new file mode 100644 index 000000000000..0b2b0f3a6fbe --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListAnywhereCachesResponse.php @@ -0,0 +1,105 @@ +google.storage.control.v2.ListAnywhereCachesResponse + */ +class ListAnywhereCachesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of items. + * + * Generated from protobuf field repeated .google.storage.control.v2.AnywhereCache anywhere_caches = 1; + */ + private $anywhere_caches; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\AnywhereCache[] $anywhere_caches + * The list of items. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * The list of items. + * + * Generated from protobuf field repeated .google.storage.control.v2.AnywhereCache anywhere_caches = 1; + * @return RepeatedField<\Google\Cloud\Storage\Control\V2\AnywhereCache> + */ + public function getAnywhereCaches() + { + return $this->anywhere_caches; + } + + /** + * The list of items. + * + * Generated from protobuf field repeated .google.storage.control.v2.AnywhereCache anywhere_caches = 1; + * @param \Google\Cloud\Storage\Control\V2\AnywhereCache[] $var + * @return $this + */ + public function setAnywhereCaches($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\AnywhereCache::class); + $this->anywhere_caches = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListFoldersRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListFoldersRequest.php new file mode 100644 index 000000000000..4194e6c35a46 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListFoldersRequest.php @@ -0,0 +1,373 @@ +google.storage.control.v2.ListFoldersRequest + */ +class ListFoldersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the bucket in which to look for folders. The bucket must + * be a hierarchical namespace enabled bucket. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of folders to return in a single response. The + * service will use this parameter or 1,000 items, whichever is smaller. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A previously-returned page token representing part of the larger + * set of results to view. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Filter results to folders whose names begin with this prefix. + * If set, the value must either be an empty string or end with a '/'. + * + * Generated from protobuf field string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $prefix = ''; + /** + * Optional. If set, returns results in a directory-like mode. The results + * will only include folders that either exactly match the above prefix, or + * are one level below the prefix. The only supported value is '/'. + * + * Generated from protobuf field string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $delimiter = ''; + /** + * Optional. Filter results to folders whose names are lexicographically equal + * to or after lexicographic_start. If lexicographic_end is also set, the + * folders listed have names between lexicographic_start (inclusive) and + * lexicographic_end (exclusive). + * + * Generated from protobuf field string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $lexicographic_start = ''; + /** + * Optional. Filter results to folders whose names are lexicographically + * before lexicographic_end. If lexicographic_start is also set, the folders + * listed have names between lexicographic_start (inclusive) and + * lexicographic_end (exclusive). + * + * Generated from protobuf field string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $lexicographic_end = ''; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $parent Required. Name of the bucket in which to look for folders. The bucket must + * be a hierarchical namespace enabled bucket. Please see + * {@see StorageControlClient::bucketName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\ListFoldersRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Name of the bucket in which to look for folders. The bucket must + * be a hierarchical namespace enabled bucket. + * @type int $page_size + * Optional. Maximum number of folders to return in a single response. The + * service will use this parameter or 1,000 items, whichever is smaller. + * @type string $page_token + * Optional. A previously-returned page token representing part of the larger + * set of results to view. + * @type string $prefix + * Optional. Filter results to folders whose names begin with this prefix. + * If set, the value must either be an empty string or end with a '/'. + * @type string $delimiter + * Optional. If set, returns results in a directory-like mode. The results + * will only include folders that either exactly match the above prefix, or + * are one level below the prefix. The only supported value is '/'. + * @type string $lexicographic_start + * Optional. Filter results to folders whose names are lexicographically equal + * to or after lexicographic_start. If lexicographic_end is also set, the + * folders listed have names between lexicographic_start (inclusive) and + * lexicographic_end (exclusive). + * @type string $lexicographic_end + * Optional. Filter results to folders whose names are lexicographically + * before lexicographic_end. If lexicographic_start is also set, the folders + * listed have names between lexicographic_start (inclusive) and + * lexicographic_end (exclusive). + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the bucket in which to look for folders. The bucket must + * be a hierarchical namespace enabled bucket. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Name of the bucket in which to look for folders. The bucket must + * be a hierarchical namespace enabled bucket. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. Maximum number of folders to return in a single response. The + * service will use this parameter or 1,000 items, whichever is smaller. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of folders to return in a single response. The + * service will use this parameter or 1,000 items, whichever is smaller. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A previously-returned page token representing part of the larger + * set of results to view. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A previously-returned page token representing part of the larger + * set of results to view. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Filter results to folders whose names begin with this prefix. + * If set, the value must either be an empty string or end with a '/'. + * + * Generated from protobuf field string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPrefix() + { + return $this->prefix; + } + + /** + * Optional. Filter results to folders whose names begin with this prefix. + * If set, the value must either be an empty string or end with a '/'. + * + * Generated from protobuf field string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPrefix($var) + { + GPBUtil::checkString($var, True); + $this->prefix = $var; + + return $this; + } + + /** + * Optional. If set, returns results in a directory-like mode. The results + * will only include folders that either exactly match the above prefix, or + * are one level below the prefix. The only supported value is '/'. + * + * Generated from protobuf field string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDelimiter() + { + return $this->delimiter; + } + + /** + * Optional. If set, returns results in a directory-like mode. The results + * will only include folders that either exactly match the above prefix, or + * are one level below the prefix. The only supported value is '/'. + * + * Generated from protobuf field string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDelimiter($var) + { + GPBUtil::checkString($var, True); + $this->delimiter = $var; + + return $this; + } + + /** + * Optional. Filter results to folders whose names are lexicographically equal + * to or after lexicographic_start. If lexicographic_end is also set, the + * folders listed have names between lexicographic_start (inclusive) and + * lexicographic_end (exclusive). + * + * Generated from protobuf field string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLexicographicStart() + { + return $this->lexicographic_start; + } + + /** + * Optional. Filter results to folders whose names are lexicographically equal + * to or after lexicographic_start. If lexicographic_end is also set, the + * folders listed have names between lexicographic_start (inclusive) and + * lexicographic_end (exclusive). + * + * Generated from protobuf field string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLexicographicStart($var) + { + GPBUtil::checkString($var, True); + $this->lexicographic_start = $var; + + return $this; + } + + /** + * Optional. Filter results to folders whose names are lexicographically + * before lexicographic_end. If lexicographic_start is also set, the folders + * listed have names between lexicographic_start (inclusive) and + * lexicographic_end (exclusive). + * + * Generated from protobuf field string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLexicographicEnd() + { + return $this->lexicographic_end; + } + + /** + * Optional. Filter results to folders whose names are lexicographically + * before lexicographic_end. If lexicographic_start is also set, the folders + * listed have names between lexicographic_start (inclusive) and + * lexicographic_end (exclusive). + * + * Generated from protobuf field string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLexicographicEnd($var) + { + GPBUtil::checkString($var, True); + $this->lexicographic_end = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListFoldersResponse.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListFoldersResponse.php new file mode 100644 index 000000000000..cd0c0cdd657c --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListFoldersResponse.php @@ -0,0 +1,105 @@ +google.storage.control.v2.ListFoldersResponse + */ +class ListFoldersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of child folders + * + * Generated from protobuf field repeated .google.storage.control.v2.Folder folders = 1; + */ + private $folders; + /** + * The continuation token, used to page through large result sets. Provide + * this value in a subsequent request to return the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\Folder[] $folders + * The list of child folders + * @type string $next_page_token + * The continuation token, used to page through large result sets. Provide + * this value in a subsequent request to return the next page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * The list of child folders + * + * Generated from protobuf field repeated .google.storage.control.v2.Folder folders = 1; + * @return RepeatedField<\Google\Cloud\Storage\Control\V2\Folder> + */ + public function getFolders() + { + return $this->folders; + } + + /** + * The list of child folders + * + * Generated from protobuf field repeated .google.storage.control.v2.Folder folders = 1; + * @param \Google\Cloud\Storage\Control\V2\Folder[] $var + * @return $this + */ + public function setFolders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\Folder::class); + $this->folders = $arr; + + return $this; + } + + /** + * The continuation token, used to page through large result sets. Provide + * this value in a subsequent request to return the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * The continuation token, used to page through large result sets. Provide + * this value in a subsequent request to return the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingRevisionsRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingRevisionsRequest.php new file mode 100644 index 000000000000..46d060ee666c --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingRevisionsRequest.php @@ -0,0 +1,181 @@ +google.storage.control.v2.ListIntelligenceFindingRevisionsRequest + */ +class ListIntelligenceFindingRevisionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent of the `IntelligenceFindingRevision` resource. + * ## Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `IntelligenceFindingRevision` resources to + * return. + * The maximum value is `100`; values above `100` will be coerced to `100`. + * The default value is `100`. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous + * `ListIntelligenceFindingRevisions` call. Provide this to retrieve the + * subsequent page. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The parent of the `IntelligenceFindingRevision` resource. + * ## Format: + * + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` + * Please see {@see StorageControlClient::intelligenceFindingName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\ListIntelligenceFindingRevisionsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent of the `IntelligenceFindingRevision` resource. + * ## Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` + * @type int $page_size + * Optional. The maximum number of `IntelligenceFindingRevision` resources to + * return. + * The maximum value is `100`; values above `100` will be coerced to `100`. + * The default value is `100`. + * @type string $page_token + * Optional. A page token, received from a previous + * `ListIntelligenceFindingRevisions` call. Provide this to retrieve the + * subsequent page. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent of the `IntelligenceFindingRevision` resource. + * ## Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent of the `IntelligenceFindingRevision` resource. + * ## Format: + * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `IntelligenceFindingRevision` resources to + * return. + * The maximum value is `100`; values above `100` will be coerced to `100`. + * The default value is `100`. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `IntelligenceFindingRevision` resources to + * return. + * The maximum value is `100`; values above `100` will be coerced to `100`. + * The default value is `100`. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous + * `ListIntelligenceFindingRevisions` call. Provide this to retrieve the + * subsequent page. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous + * `ListIntelligenceFindingRevisions` call. Provide this to retrieve the + * subsequent page. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingRevisionsResponse.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingRevisionsResponse.php new file mode 100644 index 000000000000..a4405f4afe74 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingRevisionsResponse.php @@ -0,0 +1,102 @@ +google.storage.control.v2.ListIntelligenceFindingRevisionsResponse + */ +class ListIntelligenceFindingRevisionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `IntelligenceFindingRevision` resources from the specified project. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFindingRevision intelligence_finding_revisions = 1; + */ + private $intelligence_finding_revisions; + /** + * A token that can be sent as `page_token` to retrieve the next page. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\IntelligenceFindingRevision[] $intelligence_finding_revisions + * The `IntelligenceFindingRevision` resources from the specified project. + * @type string $next_page_token + * A token that can be sent as `page_token` to retrieve the next page. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * The `IntelligenceFindingRevision` resources from the specified project. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFindingRevision intelligence_finding_revisions = 1; + * @return RepeatedField<\Google\Cloud\Storage\Control\V2\IntelligenceFindingRevision> + */ + public function getIntelligenceFindingRevisions() + { + return $this->intelligence_finding_revisions; + } + + /** + * The `IntelligenceFindingRevision` resources from the specified project. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFindingRevision intelligence_finding_revisions = 1; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceFindingRevision[] $var + * @return $this + */ + public function setIntelligenceFindingRevisions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\IntelligenceFindingRevision::class); + $this->intelligence_finding_revisions = $arr; + + return $this; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingsRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingsRequest.php new file mode 100644 index 000000000000..09e43da2db45 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingsRequest.php @@ -0,0 +1,218 @@ +google.storage.control.v2.ListIntelligenceFindingsRequest + */ +class ListIntelligenceFindingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent of the `IntelligenceFinding` resource. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The filter expression to be applied. + * Supports filtering by `type` and `associated_resources`. + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. The maximum number of `IntelligenceFinding` resources to return. + * The maximum value is `100`; values above `100` will be coerced to `100`. + * The default value is `100`. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListIntelligenceFindings` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListIntelligenceFindings` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The parent of the `IntelligenceFinding` resource. + * + * Format: `projects/{project}/locations/{location}` + * Please see {@see StorageControlClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\ListIntelligenceFindingsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent of the `IntelligenceFinding` resource. + * Format: `projects/{project}/locations/{location}` + * @type string $filter + * Optional. The filter expression to be applied. + * Supports filtering by `type` and `associated_resources`. + * @type int $page_size + * Optional. The maximum number of `IntelligenceFinding` resources to return. + * The maximum value is `100`; values above `100` will be coerced to `100`. + * The default value is `100`. + * @type string $page_token + * Optional. A page token, received from a previous `ListIntelligenceFindings` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListIntelligenceFindings` must match the call that provided the page + * token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent of the `IntelligenceFinding` resource. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent of the `IntelligenceFinding` resource. + * Format: `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The filter expression to be applied. + * Supports filtering by `type` and `associated_resources`. + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. The filter expression to be applied. + * Supports filtering by `type` and `associated_resources`. + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. The maximum number of `IntelligenceFinding` resources to return. + * The maximum value is `100`; values above `100` will be coerced to `100`. + * The default value is `100`. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `IntelligenceFinding` resources to return. + * The maximum value is `100`; values above `100` will be coerced to `100`. + * The default value is `100`. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListIntelligenceFindings` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListIntelligenceFindings` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListIntelligenceFindings` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListIntelligenceFindings` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingsResponse.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingsResponse.php new file mode 100644 index 000000000000..b429795edbc4 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingsResponse.php @@ -0,0 +1,106 @@ +google.storage.control.v2.ListIntelligenceFindingsResponse + */ +class ListIntelligenceFindingsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `IntelligenceFinding` resources from the specified project. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding intelligence_findings = 1; + */ + private $intelligence_findings; + /** + * A token to retrieve the next page of results. + * Pass this value in the `page_token` field in the subsequent call. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding[] $intelligence_findings + * The `IntelligenceFinding` resources from the specified project. + * @type string $next_page_token + * A token to retrieve the next page of results. + * Pass this value in the `page_token` field in the subsequent call. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * The `IntelligenceFinding` resources from the specified project. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding intelligence_findings = 1; + * @return RepeatedField<\Google\Cloud\Storage\Control\V2\IntelligenceFinding> + */ + public function getIntelligenceFindings() + { + return $this->intelligence_findings; + } + + /** + * The `IntelligenceFinding` resources from the specified project. + * + * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding intelligence_findings = 1; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding[] $var + * @return $this + */ + public function setIntelligenceFindings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\IntelligenceFinding::class); + $this->intelligence_findings = $arr; + + return $this; + } + + /** + * A token to retrieve the next page of results. + * Pass this value in the `page_token` field in the subsequent call. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token to retrieve the next page of results. + * Pass this value in the `page_token` field in the subsequent call. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListManagedFoldersRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListManagedFoldersRequest.php new file mode 100644 index 000000000000..3c7bbc4711a5 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListManagedFoldersRequest.php @@ -0,0 +1,233 @@ +google.storage.control.v2.ListManagedFoldersRequest + */ +class ListManagedFoldersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the bucket this managed folder belongs to. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of managed folders to return in a single response. + * The service will use this parameter or 1,000 items, whichever is smaller. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A previously-returned page token representing part of the larger + * set of results to view. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Filter results to match managed folders with name starting with + * this prefix. + * + * Generated from protobuf field string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $prefix = ''; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $parent Required. Name of the bucket this managed folder belongs to. Please see + * {@see StorageControlClient::bucketName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\ListManagedFoldersRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Name of the bucket this managed folder belongs to. + * @type int $page_size + * Optional. Maximum number of managed folders to return in a single response. + * The service will use this parameter or 1,000 items, whichever is smaller. + * @type string $page_token + * Optional. A previously-returned page token representing part of the larger + * set of results to view. + * @type string $prefix + * Optional. Filter results to match managed folders with name starting with + * this prefix. + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the bucket this managed folder belongs to. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Name of the bucket this managed folder belongs to. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. Maximum number of managed folders to return in a single response. + * The service will use this parameter or 1,000 items, whichever is smaller. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of managed folders to return in a single response. + * The service will use this parameter or 1,000 items, whichever is smaller. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A previously-returned page token representing part of the larger + * set of results to view. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A previously-returned page token representing part of the larger + * set of results to view. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Filter results to match managed folders with name starting with + * this prefix. + * + * Generated from protobuf field string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPrefix() + { + return $this->prefix; + } + + /** + * Optional. Filter results to match managed folders with name starting with + * this prefix. + * + * Generated from protobuf field string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPrefix($var) + { + GPBUtil::checkString($var, True); + $this->prefix = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListManagedFoldersResponse.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListManagedFoldersResponse.php new file mode 100644 index 000000000000..8675ad505ac8 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListManagedFoldersResponse.php @@ -0,0 +1,105 @@ +google.storage.control.v2.ListManagedFoldersResponse + */ +class ListManagedFoldersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of matching managed folders + * + * Generated from protobuf field repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; + */ + private $managed_folders; + /** + * The continuation token, used to page through large result sets. Provide + * this value in a subsequent request to return the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\ManagedFolder[] $managed_folders + * The list of matching managed folders + * @type string $next_page_token + * The continuation token, used to page through large result sets. Provide + * this value in a subsequent request to return the next page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * The list of matching managed folders + * + * Generated from protobuf field repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; + * @return RepeatedField<\Google\Cloud\Storage\Control\V2\ManagedFolder> + */ + public function getManagedFolders() + { + return $this->managed_folders; + } + + /** + * The list of matching managed folders + * + * Generated from protobuf field repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; + * @param \Google\Cloud\Storage\Control\V2\ManagedFolder[] $var + * @return $this + */ + public function setManagedFolders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\ManagedFolder::class); + $this->managed_folders = $arr; + + return $this; + } + + /** + * The continuation token, used to page through large result sets. Provide + * this value in a subsequent request to return the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * The continuation token, used to page through large result sets. Provide + * this value in a subsequent request to return the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListRapidCachesRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListRapidCachesRequest.php new file mode 100644 index 000000000000..b3b32cfb51f7 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListRapidCachesRequest.php @@ -0,0 +1,195 @@ +google.storage.control.v2.ListRapidCachesRequest + */ +class ListRapidCachesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The bucket to which this cache belongs. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Maximum number of caches to return in a single response. + * The service will use this parameter or 1,000 items, whichever is smaller. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A previously-returned page token representing part of the larger set of + * results to view. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $parent Required. The bucket to which this cache belongs. Please see + * {@see StorageControlClient::bucketName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\ListRapidCachesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The bucket to which this cache belongs. + * @type int $page_size + * Maximum number of caches to return in a single response. + * The service will use this parameter or 1,000 items, whichever is smaller. + * @type string $page_token + * A previously-returned page token representing part of the larger set of + * results to view. + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The bucket to which this cache belongs. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The bucket to which this cache belongs. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Maximum number of caches to return in a single response. + * The service will use this parameter or 1,000 items, whichever is smaller. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Maximum number of caches to return in a single response. + * The service will use this parameter or 1,000 items, whichever is smaller. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A previously-returned page token representing part of the larger set of + * results to view. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A previously-returned page token representing part of the larger set of + * results to view. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListRapidCachesResponse.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListRapidCachesResponse.php new file mode 100644 index 000000000000..feb009eb7235 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListRapidCachesResponse.php @@ -0,0 +1,105 @@ +google.storage.control.v2.ListRapidCachesResponse + */ +class ListRapidCachesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of rapid caches. + * + * Generated from protobuf field repeated .google.storage.control.v2.RapidCache rapid_caches = 1; + */ + private $rapid_caches; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\RapidCache[] $rapid_caches + * The list of rapid caches. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * The list of rapid caches. + * + * Generated from protobuf field repeated .google.storage.control.v2.RapidCache rapid_caches = 1; + * @return RepeatedField<\Google\Cloud\Storage\Control\V2\RapidCache> + */ + public function getRapidCaches() + { + return $this->rapid_caches; + } + + /** + * The list of rapid caches. + * + * Generated from protobuf field repeated .google.storage.control.v2.RapidCache rapid_caches = 1; + * @param \Google\Cloud\Storage\Control\V2\RapidCache[] $var + * @return $this + */ + public function setRapidCaches($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\RapidCache::class); + $this->rapid_caches = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder.php new file mode 100644 index 000000000000..10c34532376d --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder.php @@ -0,0 +1,249 @@ +google.storage.control.v2.ManagedFolder + */ +class ManagedFolder extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name of this managed folder. + * Format: + * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The metadata version of this managed folder. It increases + * whenever the metadata is updated. Used for preconditions and for detecting + * changes in metadata. Managed folders don't have a generation number. + * + * Generated from protobuf field int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $metageneration = 0; + /** + * Output only. The creation time of the managed folder. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The modification time of the managed folder. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Rapid Cache configuration for a managed prefix. + * + * Generated from protobuf field optional .google.storage.control.v2.ManagedFolder.RapidCacheConfig rapid_cache_config = 6; + */ + protected $rapid_cache_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The name of this managed folder. + * Format: + * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` + * @type int|string $metageneration + * Output only. The metadata version of this managed folder. It increases + * whenever the metadata is updated. Used for preconditions and for detecting + * changes in metadata. Managed folders don't have a generation number. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The creation time of the managed folder. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The modification time of the managed folder. + * @type \Google\Cloud\Storage\Control\V2\ManagedFolder\RapidCacheConfig $rapid_cache_config + * Rapid Cache configuration for a managed prefix. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The name of this managed folder. + * Format: + * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of this managed folder. + * Format: + * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The metadata version of this managed folder. It increases + * whenever the metadata is updated. Used for preconditions and for detecting + * changes in metadata. Managed folders don't have a generation number. + * + * Generated from protobuf field int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getMetageneration() + { + return $this->metageneration; + } + + /** + * Output only. The metadata version of this managed folder. It increases + * whenever the metadata is updated. Used for preconditions and for detecting + * changes in metadata. Managed folders don't have a generation number. + * + * Generated from protobuf field int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setMetageneration($var) + { + GPBUtil::checkInt64($var); + $this->metageneration = $var; + + return $this; + } + + /** + * Output only. The creation time of the managed folder. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The creation time of the managed folder. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The modification time of the managed folder. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The modification time of the managed folder. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Rapid Cache configuration for a managed prefix. + * + * Generated from protobuf field optional .google.storage.control.v2.ManagedFolder.RapidCacheConfig rapid_cache_config = 6; + * @return \Google\Cloud\Storage\Control\V2\ManagedFolder\RapidCacheConfig|null + */ + public function getRapidCacheConfig() + { + return $this->rapid_cache_config; + } + + public function hasRapidCacheConfig() + { + return isset($this->rapid_cache_config); + } + + public function clearRapidCacheConfig() + { + unset($this->rapid_cache_config); + } + + /** + * Rapid Cache configuration for a managed prefix. + * + * Generated from protobuf field optional .google.storage.control.v2.ManagedFolder.RapidCacheConfig rapid_cache_config = 6; + * @param \Google\Cloud\Storage\Control\V2\ManagedFolder\RapidCacheConfig $var + * @return $this + */ + public function setRapidCacheConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\ManagedFolder\RapidCacheConfig::class); + $this->rapid_cache_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder/RapidCacheConfig.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder/RapidCacheConfig.php new file mode 100644 index 000000000000..e99c7e4dcfe2 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder/RapidCacheConfig.php @@ -0,0 +1,85 @@ +google.storage.control.v2.ManagedFolder.RapidCacheConfig + */ +class RapidCacheConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A map of rapid_cache_id to RapidCachePolicy for this prefix. + * Currently, the key rapid_cache_id is the zone. However, the + * field is generalized as rapid_cache_id to align the policy lifetime + * with the cache instance lifetime. This allows for a future transition + * from zone to a cache id if required. + * + * Generated from protobuf field map policies = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $policies; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\MapField $policies + * Optional. A map of rapid_cache_id to RapidCachePolicy for this prefix. + * Currently, the key rapid_cache_id is the zone. However, the + * field is generalized as rapid_cache_id to align the policy lifetime + * with the cache instance lifetime. This allows for a future transition + * from zone to a cache id if required. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A map of rapid_cache_id to RapidCachePolicy for this prefix. + * Currently, the key rapid_cache_id is the zone. However, the + * field is generalized as rapid_cache_id to align the policy lifetime + * with the cache instance lifetime. This allows for a future transition + * from zone to a cache id if required. + * + * Generated from protobuf field map policies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getPolicies() + { + return $this->policies; + } + + /** + * Optional. A map of rapid_cache_id to RapidCachePolicy for this prefix. + * Currently, the key rapid_cache_id is the zone. However, the + * field is generalized as rapid_cache_id to align the policy lifetime + * with the cache instance lifetime. This allows for a future transition + * from zone to a cache id if required. + * + * Generated from protobuf field map policies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setPolicies($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\ManagedFolder\RapidCacheConfig\RapidCachePolicy::class); + $this->policies = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder/RapidCacheConfig/RapidCachePolicy.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder/RapidCacheConfig/RapidCachePolicy.php new file mode 100644 index 000000000000..521fed418ea8 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder/RapidCacheConfig/RapidCachePolicy.php @@ -0,0 +1,105 @@ +google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy + */ +class RapidCachePolicy extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The identifier for the rapid cache. + * + * Generated from protobuf field string rapid_cache_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $rapid_cache_id = ''; + /** + * Required. If enabled, objects in the Managed Folder will be ingested + * into the cache when they are written. + * + * Generated from protobuf field .google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy.IngestOnWrite ingest_on_write = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $ingest_on_write = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $rapid_cache_id + * Required. The identifier for the rapid cache. + * @type int $ingest_on_write + * Required. If enabled, objects in the Managed Folder will be ingested + * into the cache when they are written. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The identifier for the rapid cache. + * + * Generated from protobuf field string rapid_cache_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getRapidCacheId() + { + return $this->rapid_cache_id; + } + + /** + * Required. The identifier for the rapid cache. + * + * Generated from protobuf field string rapid_cache_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setRapidCacheId($var) + { + GPBUtil::checkString($var, True); + $this->rapid_cache_id = $var; + + return $this; + } + + /** + * Required. If enabled, objects in the Managed Folder will be ingested + * into the cache when they are written. + * + * Generated from protobuf field .google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy.IngestOnWrite ingest_on_write = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getIngestOnWrite() + { + return $this->ingest_on_write; + } + + /** + * Required. If enabled, objects in the Managed Folder will be ingested + * into the cache when they are written. + * + * Generated from protobuf field .google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy.IngestOnWrite ingest_on_write = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setIngestOnWrite($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\ManagedFolder\RapidCacheConfig\RapidCachePolicy\IngestOnWrite::class); + $this->ingest_on_write = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder/RapidCacheConfig/RapidCachePolicy/IngestOnWrite.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder/RapidCacheConfig/RapidCachePolicy/IngestOnWrite.php new file mode 100644 index 000000000000..a0627a680f92 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder/RapidCacheConfig/RapidCachePolicy/IngestOnWrite.php @@ -0,0 +1,56 @@ +google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy.IngestOnWrite + */ +class IngestOnWrite +{ + /** + * The behavior is not specified at this resource level. + * It should be inherited from the parent resource's configuration. + * This is the default value. + * + * Generated from protobuf enum INGEST_ON_WRITE_UNSPECIFIED = 0; + */ + const INGEST_ON_WRITE_UNSPECIFIED = 0; + /** + * Ingestion on write is explicitly enabled for this resource. + * + * Generated from protobuf enum INGEST_ON_WRITE_ENABLED = 1; + */ + const INGEST_ON_WRITE_ENABLED = 1; + + private static $valueToName = [ + self::INGEST_ON_WRITE_UNSPECIFIED => 'INGEST_ON_WRITE_UNSPECIFIED', + self::INGEST_ON_WRITE_ENABLED => 'INGEST_ON_WRITE_ENABLED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/PauseAnywhereCacheRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/PauseAnywhereCacheRequest.php new file mode 100644 index 000000000000..8b7cbbad29f3 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/PauseAnywhereCacheRequest.php @@ -0,0 +1,128 @@ +google.storage.control.v2.PauseAnywhereCacheRequest + */ +class PauseAnywhereCacheRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $name Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * Please see {@see StorageControlClient::anywhereCacheName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\PauseAnywhereCacheRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/PendingRenameInfo.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/PendingRenameInfo.php new file mode 100644 index 000000000000..23a23f19fd91 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/PendingRenameInfo.php @@ -0,0 +1,67 @@ +google.storage.control.v2.PendingRenameInfo + */ +class PendingRenameInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the rename operation. + * + * Generated from protobuf field string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $operation = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $operation + * Output only. The name of the rename operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the rename operation. + * + * Generated from protobuf field string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getOperation() + { + return $this->operation; + } + + /** + * Output only. The name of the rename operation. + * + * Generated from protobuf field string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setOperation($var) + { + GPBUtil::checkString($var, True); + $this->operation = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RapidCache.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RapidCache.php new file mode 100644 index 000000000000..bbb07750c7fa --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RapidCache.php @@ -0,0 +1,421 @@ +google.storage.control.v2.RapidCache + */ +class RapidCache extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. The resource name of this RapidCache. + * Format: + * projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * Immutable. The zone in which the cache instance is running. For example, + * us-central1-a. + * + * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $zone = ''; + /** + * Immutable. The type of Rapid Cache this represents. Valid values include: + * 'rapid-cache' and 'rapid-cache-ultra'. + * + * Generated from protobuf field string cache_type = 3 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $cache_type = ''; + /** + * Cache entry TTL (ranges between 1h to 7d). This is a cache-level config + * that defines how long a cache entry can live. Default ttl value (24hrs) + * is applied if not specified in the create request. TTL must be in whole + * seconds. + * + * Generated from protobuf field .google.protobuf.Duration ttl = 4; + */ + protected $ttl = null; + /** + * Cache admission policy. Valid policies includes: + * no_read_admission, admit-on-first-miss and admit-on-second-miss. Defaults + * to admit-on-first-miss for both AC and RCU. Default value is applied if not + * specified in the create request. + * + * Generated from protobuf field string admission_policy = 5; + */ + protected $admission_policy = ''; + /** + * Output only. Cache state including running, creating, and disabled. + * + * Generated from protobuf field string state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = ''; + /** + * Output only. Time when Rapid cache instance is allocated. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time when Rapid cache instance is last updated, including + * creation. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. True if there is an active update operation against this cache + * instance. Subsequential update requests will be rejected if this field is + * true. Output only. + * + * Generated from protobuf field bool pending_update = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $pending_update = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Immutable. The resource name of this RapidCache. + * Format: + * projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache} + * @type string $zone + * Immutable. The zone in which the cache instance is running. For example, + * us-central1-a. + * @type string $cache_type + * Immutable. The type of Rapid Cache this represents. Valid values include: + * 'rapid-cache' and 'rapid-cache-ultra'. + * @type \Google\Protobuf\Duration $ttl + * Cache entry TTL (ranges between 1h to 7d). This is a cache-level config + * that defines how long a cache entry can live. Default ttl value (24hrs) + * is applied if not specified in the create request. TTL must be in whole + * seconds. + * @type string $admission_policy + * Cache admission policy. Valid policies includes: + * no_read_admission, admit-on-first-miss and admit-on-second-miss. Defaults + * to admit-on-first-miss for both AC and RCU. Default value is applied if not + * specified in the create request. + * @type string $state + * Output only. Cache state including running, creating, and disabled. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when Rapid cache instance is allocated. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time when Rapid cache instance is last updated, including + * creation. + * @type bool $pending_update + * Output only. True if there is an active update operation against this cache + * instance. Subsequential update requests will be rejected if this field is + * true. Output only. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. The resource name of this RapidCache. + * Format: + * projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Immutable. The resource name of this RapidCache. + * Format: + * projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. The zone in which the cache instance is running. For example, + * us-central1-a. + * + * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getZone() + { + return $this->zone; + } + + /** + * Immutable. The zone in which the cache instance is running. For example, + * us-central1-a. + * + * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setZone($var) + { + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Immutable. The type of Rapid Cache this represents. Valid values include: + * 'rapid-cache' and 'rapid-cache-ultra'. + * + * Generated from protobuf field string cache_type = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getCacheType() + { + return $this->cache_type; + } + + /** + * Immutable. The type of Rapid Cache this represents. Valid values include: + * 'rapid-cache' and 'rapid-cache-ultra'. + * + * Generated from protobuf field string cache_type = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setCacheType($var) + { + GPBUtil::checkString($var, True); + $this->cache_type = $var; + + return $this; + } + + /** + * Cache entry TTL (ranges between 1h to 7d). This is a cache-level config + * that defines how long a cache entry can live. Default ttl value (24hrs) + * is applied if not specified in the create request. TTL must be in whole + * seconds. + * + * Generated from protobuf field .google.protobuf.Duration ttl = 4; + * @return \Google\Protobuf\Duration|null + */ + public function getTtl() + { + return $this->ttl; + } + + public function hasTtl() + { + return isset($this->ttl); + } + + public function clearTtl() + { + unset($this->ttl); + } + + /** + * Cache entry TTL (ranges between 1h to 7d). This is a cache-level config + * that defines how long a cache entry can live. Default ttl value (24hrs) + * is applied if not specified in the create request. TTL must be in whole + * seconds. + * + * Generated from protobuf field .google.protobuf.Duration ttl = 4; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setTtl($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->ttl = $var; + + return $this; + } + + /** + * Cache admission policy. Valid policies includes: + * no_read_admission, admit-on-first-miss and admit-on-second-miss. Defaults + * to admit-on-first-miss for both AC and RCU. Default value is applied if not + * specified in the create request. + * + * Generated from protobuf field string admission_policy = 5; + * @return string + */ + public function getAdmissionPolicy() + { + return $this->admission_policy; + } + + /** + * Cache admission policy. Valid policies includes: + * no_read_admission, admit-on-first-miss and admit-on-second-miss. Defaults + * to admit-on-first-miss for both AC and RCU. Default value is applied if not + * specified in the create request. + * + * Generated from protobuf field string admission_policy = 5; + * @param string $var + * @return $this + */ + public function setAdmissionPolicy($var) + { + GPBUtil::checkString($var, True); + $this->admission_policy = $var; + + return $this; + } + + /** + * Output only. Cache state including running, creating, and disabled. + * + * Generated from protobuf field string state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Cache state including running, creating, and disabled. + * + * Generated from protobuf field string state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkString($var, True); + $this->state = $var; + + return $this; + } + + /** + * Output only. Time when Rapid cache instance is allocated. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when Rapid cache instance is allocated. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time when Rapid cache instance is last updated, including + * creation. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time when Rapid cache instance is last updated, including + * creation. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. True if there is an active update operation against this cache + * instance. Subsequential update requests will be rejected if this field is + * true. Output only. + * + * Generated from protobuf field bool pending_update = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getPendingUpdate() + { + return $this->pending_update; + } + + /** + * Output only. True if there is an active update operation against this cache + * instance. Subsequential update requests will be rejected if this field is + * true. Output only. + * + * Generated from protobuf field bool pending_update = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setPendingUpdate($var) + { + GPBUtil::checkBool($var); + $this->pending_update = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RenameFolderMetadata.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RenameFolderMetadata.php new file mode 100644 index 000000000000..487fceba5e40 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RenameFolderMetadata.php @@ -0,0 +1,146 @@ +google.storage.control.v2.RenameFolderMetadata + */ +class RenameFolderMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Generic metadata for the long running operation. + * + * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + */ + protected $common_metadata = null; + /** + * The path of the source folder. + * + * Generated from protobuf field string source_folder_id = 2; + */ + protected $source_folder_id = ''; + /** + * The path of the destination folder. + * + * Generated from protobuf field string destination_folder_id = 3; + */ + protected $destination_folder_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $common_metadata + * Generic metadata for the long running operation. + * @type string $source_folder_id + * The path of the source folder. + * @type string $destination_folder_id + * The path of the destination folder. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Generic metadata for the long running operation. + * + * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * @return \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata|null + */ + public function getCommonMetadata() + { + return $this->common_metadata; + } + + public function hasCommonMetadata() + { + return isset($this->common_metadata); + } + + public function clearCommonMetadata() + { + unset($this->common_metadata); + } + + /** + * Generic metadata for the long running operation. + * + * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * @param \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $var + * @return $this + */ + public function setCommonMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata::class); + $this->common_metadata = $var; + + return $this; + } + + /** + * The path of the source folder. + * + * Generated from protobuf field string source_folder_id = 2; + * @return string + */ + public function getSourceFolderId() + { + return $this->source_folder_id; + } + + /** + * The path of the source folder. + * + * Generated from protobuf field string source_folder_id = 2; + * @param string $var + * @return $this + */ + public function setSourceFolderId($var) + { + GPBUtil::checkString($var, True); + $this->source_folder_id = $var; + + return $this; + } + + /** + * The path of the destination folder. + * + * Generated from protobuf field string destination_folder_id = 3; + * @return string + */ + public function getDestinationFolderId() + { + return $this->destination_folder_id; + } + + /** + * The path of the destination folder. + * + * Generated from protobuf field string destination_folder_id = 3; + * @param string $var + * @return $this + */ + public function setDestinationFolderId($var) + { + GPBUtil::checkString($var, True); + $this->destination_folder_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RenameFolderRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RenameFolderRequest.php new file mode 100644 index 000000000000..d73628a46402 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RenameFolderRequest.php @@ -0,0 +1,261 @@ +google.storage.control.v2.RenameFolderRequest + */ +class RenameFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the source folder being renamed. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * + * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The destination folder ID, e.g. `foo/bar/`. + * + * Generated from protobuf field string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $destination_folder_id = ''; + /** + * Makes the operation only succeed conditional on whether the source + * folder's current metageneration matches the given value. + * + * Generated from protobuf field optional int64 if_metageneration_match = 4; + */ + protected $if_metageneration_match = null; + /** + * Makes the operation only succeed conditional on whether the source + * folder's current metageneration does not match the given value. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 5; + */ + protected $if_metageneration_not_match = null; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $name Required. Name of the source folder being renamed. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * Please see {@see StorageControlClient::folderName()} for help formatting this field. + * @param string $destinationFolderId Required. The destination folder ID, e.g. `foo/bar/`. + * + * @return \Google\Cloud\Storage\Control\V2\RenameFolderRequest + * + * @experimental + */ + public static function build(string $name, string $destinationFolderId): self + { + return (new self()) + ->setName($name) + ->setDestinationFolderId($destinationFolderId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the source folder being renamed. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * @type string $destination_folder_id + * Required. The destination folder ID, e.g. `foo/bar/`. + * @type int|string $if_metageneration_match + * Makes the operation only succeed conditional on whether the source + * folder's current metageneration matches the given value. + * @type int|string $if_metageneration_not_match + * Makes the operation only succeed conditional on whether the source + * folder's current metageneration does not match the given value. + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the source folder being renamed. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * + * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the source folder being renamed. + * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` + * + * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The destination folder ID, e.g. `foo/bar/`. + * + * Generated from protobuf field string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDestinationFolderId() + { + return $this->destination_folder_id; + } + + /** + * Required. The destination folder ID, e.g. `foo/bar/`. + * + * Generated from protobuf field string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDestinationFolderId($var) + { + GPBUtil::checkString($var, True); + $this->destination_folder_id = $var; + + return $this; + } + + /** + * Makes the operation only succeed conditional on whether the source + * folder's current metageneration matches the given value. + * + * Generated from protobuf field optional int64 if_metageneration_match = 4; + * @return int|string + */ + public function getIfMetagenerationMatch() + { + return isset($this->if_metageneration_match) ? $this->if_metageneration_match : 0; + } + + public function hasIfMetagenerationMatch() + { + return isset($this->if_metageneration_match); + } + + public function clearIfMetagenerationMatch() + { + unset($this->if_metageneration_match); + } + + /** + * Makes the operation only succeed conditional on whether the source + * folder's current metageneration matches the given value. + * + * Generated from protobuf field optional int64 if_metageneration_match = 4; + * @param int|string $var + * @return $this + */ + public function setIfMetagenerationMatch($var) + { + GPBUtil::checkInt64($var); + $this->if_metageneration_match = $var; + + return $this; + } + + /** + * Makes the operation only succeed conditional on whether the source + * folder's current metageneration does not match the given value. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 5; + * @return int|string + */ + public function getIfMetagenerationNotMatch() + { + return isset($this->if_metageneration_not_match) ? $this->if_metageneration_not_match : 0; + } + + public function hasIfMetagenerationNotMatch() + { + return isset($this->if_metageneration_not_match); + } + + public function clearIfMetagenerationNotMatch() + { + unset($this->if_metageneration_not_match); + } + + /** + * Makes the operation only succeed conditional on whether the source + * folder's current metageneration does not match the given value. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 5; + * @param int|string $var + * @return $this + */ + public function setIfMetagenerationNotMatch($var) + { + GPBUtil::checkInt64($var); + $this->if_metageneration_not_match = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ResumeAnywhereCacheRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ResumeAnywhereCacheRequest.php new file mode 100644 index 000000000000..31d52462da42 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ResumeAnywhereCacheRequest.php @@ -0,0 +1,128 @@ +google.storage.control.v2.ResumeAnywhereCacheRequest + */ +class ResumeAnywhereCacheRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $name Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * Please see {@see StorageControlClient::anywhereCacheName()} for help formatting this field. + * + * @return \Google\Cloud\Storage\Control\V2\ResumeAnywhereCacheRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name field in the request should be: + * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout.php new file mode 100644 index 000000000000..a09508eb6371 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout.php @@ -0,0 +1,239 @@ +google.storage.control.v2.StorageLayout + */ +class StorageLayout extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the StorageLayout resource. + * Format: `projects/{project}/buckets/{bucket}/storageLayout` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. The location of the bucket. + * + * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $location = ''; + /** + * Output only. The location type of the bucket (region, dual-region, + * multi-region, etc). + * + * Generated from protobuf field string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $location_type = ''; + /** + * Output only. The data placement configuration for custom dual region. If + * there is no configuration, this is not a custom dual region bucket. + * + * Generated from protobuf field .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $custom_placement_config = null; + /** + * Output only. The bucket's hierarchical namespace configuration. If there is + * no configuration, the hierarchical namespace is disabled. + * + * Generated from protobuf field .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $hierarchical_namespace = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The name of the StorageLayout resource. + * Format: `projects/{project}/buckets/{bucket}/storageLayout` + * @type string $location + * Output only. The location of the bucket. + * @type string $location_type + * Output only. The location type of the bucket (region, dual-region, + * multi-region, etc). + * @type \Google\Cloud\Storage\Control\V2\StorageLayout\CustomPlacementConfig $custom_placement_config + * Output only. The data placement configuration for custom dual region. If + * there is no configuration, this is not a custom dual region bucket. + * @type \Google\Cloud\Storage\Control\V2\StorageLayout\HierarchicalNamespace $hierarchical_namespace + * Output only. The bucket's hierarchical namespace configuration. If there is + * no configuration, the hierarchical namespace is disabled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the StorageLayout resource. + * Format: `projects/{project}/buckets/{bucket}/storageLayout` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The name of the StorageLayout resource. + * Format: `projects/{project}/buckets/{bucket}/storageLayout` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The location of the bucket. + * + * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Output only. The location of the bucket. + * + * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * Output only. The location type of the bucket (region, dual-region, + * multi-region, etc). + * + * Generated from protobuf field string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLocationType() + { + return $this->location_type; + } + + /** + * Output only. The location type of the bucket (region, dual-region, + * multi-region, etc). + * + * Generated from protobuf field string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLocationType($var) + { + GPBUtil::checkString($var, True); + $this->location_type = $var; + + return $this; + } + + /** + * Output only. The data placement configuration for custom dual region. If + * there is no configuration, this is not a custom dual region bucket. + * + * Generated from protobuf field .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Storage\Control\V2\StorageLayout\CustomPlacementConfig|null + */ + public function getCustomPlacementConfig() + { + return $this->custom_placement_config; + } + + public function hasCustomPlacementConfig() + { + return isset($this->custom_placement_config); + } + + public function clearCustomPlacementConfig() + { + unset($this->custom_placement_config); + } + + /** + * Output only. The data placement configuration for custom dual region. If + * there is no configuration, this is not a custom dual region bucket. + * + * Generated from protobuf field .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\StorageLayout\CustomPlacementConfig $var + * @return $this + */ + public function setCustomPlacementConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\StorageLayout\CustomPlacementConfig::class); + $this->custom_placement_config = $var; + + return $this; + } + + /** + * Output only. The bucket's hierarchical namespace configuration. If there is + * no configuration, the hierarchical namespace is disabled. + * + * Generated from protobuf field .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Storage\Control\V2\StorageLayout\HierarchicalNamespace|null + */ + public function getHierarchicalNamespace() + { + return $this->hierarchical_namespace; + } + + public function hasHierarchicalNamespace() + { + return isset($this->hierarchical_namespace); + } + + public function clearHierarchicalNamespace() + { + unset($this->hierarchical_namespace); + } + + /** + * Output only. The bucket's hierarchical namespace configuration. If there is + * no configuration, the hierarchical namespace is disabled. + * + * Generated from protobuf field .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Storage\Control\V2\StorageLayout\HierarchicalNamespace $var + * @return $this + */ + public function setHierarchicalNamespace($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\StorageLayout\HierarchicalNamespace::class); + $this->hierarchical_namespace = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout/CustomPlacementConfig.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout/CustomPlacementConfig.php new file mode 100644 index 000000000000..9b9db6ad61c3 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout/CustomPlacementConfig.php @@ -0,0 +1,69 @@ +google.storage.control.v2.StorageLayout.CustomPlacementConfig + */ +class CustomPlacementConfig extends \Google\Protobuf\Internal\Message +{ + /** + * List of locations to use for data placement. + * + * Generated from protobuf field repeated string data_locations = 1; + */ + private $data_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $data_locations + * List of locations to use for data placement. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * List of locations to use for data placement. + * + * Generated from protobuf field repeated string data_locations = 1; + * @return RepeatedField + */ + public function getDataLocations() + { + return $this->data_locations; + } + + /** + * List of locations to use for data placement. + * + * Generated from protobuf field repeated string data_locations = 1; + * @param string[] $var + * @return $this + */ + public function setDataLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->data_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout/HierarchicalNamespace.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout/HierarchicalNamespace.php new file mode 100644 index 000000000000..2c5e0e396c6b --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout/HierarchicalNamespace.php @@ -0,0 +1,67 @@ +google.storage.control.v2.StorageLayout.HierarchicalNamespace + */ +class HierarchicalNamespace extends \Google\Protobuf\Internal\Message +{ + /** + * Enables the hierarchical namespace feature. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Enables the hierarchical namespace feature. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Enables the hierarchical namespace feature. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Enables the hierarchical namespace feature. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsRequest.php new file mode 100644 index 000000000000..2035cb2d352d --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsRequest.php @@ -0,0 +1,301 @@ +google.storage.control.v2.SummarizeIntelligenceFindingsRequest + */ +class SummarizeIntelligenceFindingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The scope to summarize the findings for. + * Format: + * - `organizations/{organization}/locations/{location}` + * - `folders/{folder}/locations/{location}` + * - `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Optional. Determines the granularity of the findings + * when the `parent` is an organization or folder. + * - `PARENT` (or not set): A single summary is + * returned for each insight type, aggregated across the entire `parent` + * scope. + * - `PROJECT`: A separate summary is returned for each + * insight type for every project within the `parent` scope. + * The only supported values are `PARENT` and `PROJECT`. + * If no value is specified, the API behaviour defaults to the `PARENT`. + * + * Generated from protobuf field .google.storage.control.v2.SummarizeIntelligenceFindingsRequest.ResourceScope resource_scope = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $resource_scope = 0; + /** + * Optional. The filter expression, following AIP-160. + * Supports filtering by FindingType. + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. The maximum number of findings to return. + * The maximum value is `100`; values above `100` will be coerced to `100`. + * The default value is `100`. + * + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous + * `SummarizeIntelligenceFindings` call. Provide this to retrieve the + * subsequent page. + * When paginating, all other parameters provided to + * `SummarizeIntelligenceFindings` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The scope to summarize the findings for. + * Format: + * - `organizations/{organization}/locations/{location}` + * - `folders/{folder}/locations/{location}` + * - `projects/{project}/locations/{location}` + * + * @return \Google\Cloud\Storage\Control\V2\SummarizeIntelligenceFindingsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The scope to summarize the findings for. + * Format: + * - `organizations/{organization}/locations/{location}` + * - `folders/{folder}/locations/{location}` + * - `projects/{project}/locations/{location}` + * @type int $resource_scope + * Optional. Determines the granularity of the findings + * when the `parent` is an organization or folder. + * - `PARENT` (or not set): A single summary is + * returned for each insight type, aggregated across the entire `parent` + * scope. + * - `PROJECT`: A separate summary is returned for each + * insight type for every project within the `parent` scope. + * The only supported values are `PARENT` and `PROJECT`. + * If no value is specified, the API behaviour defaults to the `PARENT`. + * @type string $filter + * Optional. The filter expression, following AIP-160. + * Supports filtering by FindingType. + * @type int $page_size + * Optional. The maximum number of findings to return. + * The maximum value is `100`; values above `100` will be coerced to `100`. + * The default value is `100`. + * @type string $page_token + * Optional. A page token, received from a previous + * `SummarizeIntelligenceFindings` call. Provide this to retrieve the + * subsequent page. + * When paginating, all other parameters provided to + * `SummarizeIntelligenceFindings` must match the call that provided the page + * token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The scope to summarize the findings for. + * Format: + * - `organizations/{organization}/locations/{location}` + * - `folders/{folder}/locations/{location}` + * - `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The scope to summarize the findings for. + * Format: + * - `organizations/{organization}/locations/{location}` + * - `folders/{folder}/locations/{location}` + * - `projects/{project}/locations/{location}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. Determines the granularity of the findings + * when the `parent` is an organization or folder. + * - `PARENT` (or not set): A single summary is + * returned for each insight type, aggregated across the entire `parent` + * scope. + * - `PROJECT`: A separate summary is returned for each + * insight type for every project within the `parent` scope. + * The only supported values are `PARENT` and `PROJECT`. + * If no value is specified, the API behaviour defaults to the `PARENT`. + * + * Generated from protobuf field .google.storage.control.v2.SummarizeIntelligenceFindingsRequest.ResourceScope resource_scope = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getResourceScope() + { + return $this->resource_scope; + } + + /** + * Optional. Determines the granularity of the findings + * when the `parent` is an organization or folder. + * - `PARENT` (or not set): A single summary is + * returned for each insight type, aggregated across the entire `parent` + * scope. + * - `PROJECT`: A separate summary is returned for each + * insight type for every project within the `parent` scope. + * The only supported values are `PARENT` and `PROJECT`. + * If no value is specified, the API behaviour defaults to the `PARENT`. + * + * Generated from protobuf field .google.storage.control.v2.SummarizeIntelligenceFindingsRequest.ResourceScope resource_scope = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setResourceScope($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\SummarizeIntelligenceFindingsRequest\ResourceScope::class); + $this->resource_scope = $var; + + return $this; + } + + /** + * Optional. The filter expression, following AIP-160. + * Supports filtering by FindingType. + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. The filter expression, following AIP-160. + * Supports filtering by FindingType. + * + * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. The maximum number of findings to return. + * The maximum value is `100`; values above `100` will be coerced to `100`. + * The default value is `100`. + * + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of findings to return. + * The maximum value is `100`; values above `100` will be coerced to `100`. + * The default value is `100`. + * + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous + * `SummarizeIntelligenceFindings` call. Provide this to retrieve the + * subsequent page. + * When paginating, all other parameters provided to + * `SummarizeIntelligenceFindings` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous + * `SummarizeIntelligenceFindings` call. Provide this to retrieve the + * subsequent page. + * When paginating, all other parameters provided to + * `SummarizeIntelligenceFindings` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsRequest/ResourceScope.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsRequest/ResourceScope.php new file mode 100644 index 000000000000..e3b93d42af34 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsRequest/ResourceScope.php @@ -0,0 +1,61 @@ +google.storage.control.v2.SummarizeIntelligenceFindingsRequest.ResourceScope + */ +class ResourceScope +{ + /** + * The default behavior. Falls back to PARENT behaviour + * + * Generated from protobuf enum RESOURCE_SCOPE_UNSPECIFIED = 0; + */ + const RESOURCE_SCOPE_UNSPECIFIED = 0; + /** + * Summaries are aggregated at the level of the `parent` resource. + * + * Generated from protobuf enum PARENT = 1; + */ + const PARENT = 1; + /** + * Summaries are broken down by each project within the `parent` scope. + * + * Generated from protobuf enum PROJECT = 2; + */ + const PROJECT = 2; + + private static $valueToName = [ + self::RESOURCE_SCOPE_UNSPECIFIED => 'RESOURCE_SCOPE_UNSPECIFIED', + self::PARENT => 'PARENT', + self::PROJECT => 'PROJECT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsResponse.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsResponse.php new file mode 100644 index 000000000000..59e3b2706342 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsResponse.php @@ -0,0 +1,110 @@ +google.storage.control.v2.SummarizeIntelligenceFindingsResponse + */ +class SummarizeIntelligenceFindingsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of `FindingSummary` summaries. + * + * Generated from protobuf field repeated .google.storage.control.v2.FindingSummary finding_summaries = 1; + */ + private $finding_summaries; + /** + * A token to retrieve the next page of results. + * Pass this value in the `page_token` field in the subsequent call to + * `SummarizeIntelligenceFindings` to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\FindingSummary[] $finding_summaries + * The list of `FindingSummary` summaries. + * @type string $next_page_token + * A token to retrieve the next page of results. + * Pass this value in the `page_token` field in the subsequent call to + * `SummarizeIntelligenceFindings` to retrieve the next page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * The list of `FindingSummary` summaries. + * + * Generated from protobuf field repeated .google.storage.control.v2.FindingSummary finding_summaries = 1; + * @return RepeatedField<\Google\Cloud\Storage\Control\V2\FindingSummary> + */ + public function getFindingSummaries() + { + return $this->finding_summaries; + } + + /** + * The list of `FindingSummary` summaries. + * + * Generated from protobuf field repeated .google.storage.control.v2.FindingSummary finding_summaries = 1; + * @param \Google\Cloud\Storage\Control\V2\FindingSummary[] $var + * @return $this + */ + public function setFindingSummaries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\FindingSummary::class); + $this->finding_summaries = $arr; + + return $this; + } + + /** + * A token to retrieve the next page of results. + * Pass this value in the `page_token` field in the subsequent call to + * `SummarizeIntelligenceFindings` to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token to retrieve the next page of results. + * Pass this value in the `page_token` field in the subsequent call to + * `SummarizeIntelligenceFindings` to retrieve the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateAnywhereCacheMetadata.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateAnywhereCacheMetadata.php new file mode 100644 index 000000000000..e34499bdc07d --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateAnywhereCacheMetadata.php @@ -0,0 +1,322 @@ +google.storage.control.v2.UpdateAnywhereCacheMetadata + */ +class UpdateAnywhereCacheMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Generic metadata for the long running operation. + * + * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + */ + protected $common_metadata = null; + /** + * Anywhere Cache ID. + * + * Generated from protobuf field optional string anywhere_cache_id = 2; + */ + protected $anywhere_cache_id = null; + /** + * The zone in which the cache instance is running. For example, + * us-central1-a. + * + * Generated from protobuf field optional string zone = 5; + */ + protected $zone = null; + /** + * Anywhere Cache entry's TTL between 1h and 7days. A cache-level config that + * is applied to all new cache entries on admission. If `ttl` is pending + * update, this field equals to the new value specified in the Update request. + * + * Generated from protobuf field optional .google.protobuf.Duration ttl = 3; + */ + protected $ttl = null; + /** + * Optional. Anywhere Cache entry Admission Policy in kebab-case (e.g., + * "admit-on-first-miss"). If `admission_policy` is pending + * update, this field equals to the new value specified in the Update request. + * + * Generated from protobuf field optional string admission_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $admission_policy = null; + /** + * Specifies whether objects are ingested into the cache upon write. If not + * set, it defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 6; + */ + protected $ingest_on_write = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $common_metadata + * Generic metadata for the long running operation. + * @type string $anywhere_cache_id + * Anywhere Cache ID. + * @type string $zone + * The zone in which the cache instance is running. For example, + * us-central1-a. + * @type \Google\Protobuf\Duration $ttl + * Anywhere Cache entry's TTL between 1h and 7days. A cache-level config that + * is applied to all new cache entries on admission. If `ttl` is pending + * update, this field equals to the new value specified in the Update request. + * @type string $admission_policy + * Optional. Anywhere Cache entry Admission Policy in kebab-case (e.g., + * "admit-on-first-miss"). If `admission_policy` is pending + * update, this field equals to the new value specified in the Update request. + * @type bool $ingest_on_write + * Specifies whether objects are ingested into the cache upon write. If not + * set, it defaults to false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Generic metadata for the long running operation. + * + * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * @return \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata|null + */ + public function getCommonMetadata() + { + return $this->common_metadata; + } + + public function hasCommonMetadata() + { + return isset($this->common_metadata); + } + + public function clearCommonMetadata() + { + unset($this->common_metadata); + } + + /** + * Generic metadata for the long running operation. + * + * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * @param \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $var + * @return $this + */ + public function setCommonMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata::class); + $this->common_metadata = $var; + + return $this; + } + + /** + * Anywhere Cache ID. + * + * Generated from protobuf field optional string anywhere_cache_id = 2; + * @return string + */ + public function getAnywhereCacheId() + { + return isset($this->anywhere_cache_id) ? $this->anywhere_cache_id : ''; + } + + public function hasAnywhereCacheId() + { + return isset($this->anywhere_cache_id); + } + + public function clearAnywhereCacheId() + { + unset($this->anywhere_cache_id); + } + + /** + * Anywhere Cache ID. + * + * Generated from protobuf field optional string anywhere_cache_id = 2; + * @param string $var + * @return $this + */ + public function setAnywhereCacheId($var) + { + GPBUtil::checkString($var, True); + $this->anywhere_cache_id = $var; + + return $this; + } + + /** + * The zone in which the cache instance is running. For example, + * us-central1-a. + * + * Generated from protobuf field optional string zone = 5; + * @return string + */ + public function getZone() + { + return isset($this->zone) ? $this->zone : ''; + } + + public function hasZone() + { + return isset($this->zone); + } + + public function clearZone() + { + unset($this->zone); + } + + /** + * The zone in which the cache instance is running. For example, + * us-central1-a. + * + * Generated from protobuf field optional string zone = 5; + * @param string $var + * @return $this + */ + public function setZone($var) + { + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Anywhere Cache entry's TTL between 1h and 7days. A cache-level config that + * is applied to all new cache entries on admission. If `ttl` is pending + * update, this field equals to the new value specified in the Update request. + * + * Generated from protobuf field optional .google.protobuf.Duration ttl = 3; + * @return \Google\Protobuf\Duration|null + */ + public function getTtl() + { + return $this->ttl; + } + + public function hasTtl() + { + return isset($this->ttl); + } + + public function clearTtl() + { + unset($this->ttl); + } + + /** + * Anywhere Cache entry's TTL between 1h and 7days. A cache-level config that + * is applied to all new cache entries on admission. If `ttl` is pending + * update, this field equals to the new value specified in the Update request. + * + * Generated from protobuf field optional .google.protobuf.Duration ttl = 3; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setTtl($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->ttl = $var; + + return $this; + } + + /** + * Optional. Anywhere Cache entry Admission Policy in kebab-case (e.g., + * "admit-on-first-miss"). If `admission_policy` is pending + * update, this field equals to the new value specified in the Update request. + * + * Generated from protobuf field optional string admission_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAdmissionPolicy() + { + return isset($this->admission_policy) ? $this->admission_policy : ''; + } + + public function hasAdmissionPolicy() + { + return isset($this->admission_policy); + } + + public function clearAdmissionPolicy() + { + unset($this->admission_policy); + } + + /** + * Optional. Anywhere Cache entry Admission Policy in kebab-case (e.g., + * "admit-on-first-miss"). If `admission_policy` is pending + * update, this field equals to the new value specified in the Update request. + * + * Generated from protobuf field optional string admission_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAdmissionPolicy($var) + { + GPBUtil::checkString($var, True); + $this->admission_policy = $var; + + return $this; + } + + /** + * Specifies whether objects are ingested into the cache upon write. If not + * set, it defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 6; + * @return bool + */ + public function getIngestOnWrite() + { + return isset($this->ingest_on_write) ? $this->ingest_on_write : false; + } + + public function hasIngestOnWrite() + { + return isset($this->ingest_on_write); + } + + public function clearIngestOnWrite() + { + unset($this->ingest_on_write); + } + + /** + * Specifies whether objects are ingested into the cache upon write. If not + * set, it defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 6; + * @param bool $var + * @return $this + */ + public function setIngestOnWrite($var) + { + GPBUtil::checkBool($var); + $this->ingest_on_write = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateAnywhereCacheRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateAnywhereCacheRequest.php new file mode 100644 index 000000000000..791d8de66a65 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateAnywhereCacheRequest.php @@ -0,0 +1,210 @@ +google.storage.control.v2.UpdateAnywhereCacheRequest + */ +class UpdateAnywhereCacheRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Anywhere Cache instance to be updated. + * + * Generated from protobuf field .google.storage.control.v2.AnywhereCache anywhere_cache = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $anywhere_cache = null; + /** + * Required. List of fields to be updated. Mutable fields of AnywhereCache + * include `ttl` and `admission_policy`. + * To specify ALL fields, specify a single field with the value `*`. Note: We + * recommend against doing this. If a new field is introduced at a later time, + * an older client updating with the `*` may accidentally reset the new + * field's value. + * Not specifying any fields is an error. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param \Google\Cloud\Storage\Control\V2\AnywhereCache $anywhereCache Required. The Anywhere Cache instance to be updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. List of fields to be updated. Mutable fields of AnywhereCache + * include `ttl` and `admission_policy`. + * + * To specify ALL fields, specify a single field with the value `*`. Note: We + * recommend against doing this. If a new field is introduced at a later time, + * an older client updating with the `*` may accidentally reset the new + * field's value. + * + * Not specifying any fields is an error. + * + * @return \Google\Cloud\Storage\Control\V2\UpdateAnywhereCacheRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Storage\Control\V2\AnywhereCache $anywhereCache, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setAnywhereCache($anywhereCache) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\AnywhereCache $anywhere_cache + * Required. The Anywhere Cache instance to be updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. List of fields to be updated. Mutable fields of AnywhereCache + * include `ttl` and `admission_policy`. + * To specify ALL fields, specify a single field with the value `*`. Note: We + * recommend against doing this. If a new field is introduced at a later time, + * an older client updating with the `*` may accidentally reset the new + * field's value. + * Not specifying any fields is an error. + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Anywhere Cache instance to be updated. + * + * Generated from protobuf field .google.storage.control.v2.AnywhereCache anywhere_cache = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Storage\Control\V2\AnywhereCache|null + */ + public function getAnywhereCache() + { + return $this->anywhere_cache; + } + + public function hasAnywhereCache() + { + return isset($this->anywhere_cache); + } + + public function clearAnywhereCache() + { + unset($this->anywhere_cache); + } + + /** + * Required. The Anywhere Cache instance to be updated. + * + * Generated from protobuf field .google.storage.control.v2.AnywhereCache anywhere_cache = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Storage\Control\V2\AnywhereCache $var + * @return $this + */ + public function setAnywhereCache($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\AnywhereCache::class); + $this->anywhere_cache = $var; + + return $this; + } + + /** + * Required. List of fields to be updated. Mutable fields of AnywhereCache + * include `ttl` and `admission_policy`. + * To specify ALL fields, specify a single field with the value `*`. Note: We + * recommend against doing this. If a new field is introduced at a later time, + * an older client updating with the `*` may accidentally reset the new + * field's value. + * Not specifying any fields is an error. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. List of fields to be updated. Mutable fields of AnywhereCache + * include `ttl` and `admission_policy`. + * To specify ALL fields, specify a single field with the value `*`. Note: We + * recommend against doing this. If a new field is introduced at a later time, + * an older client updating with the `*` may accidentally reset the new + * field's value. + * Not specifying any fields is an error. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateFolderIntelligenceConfigRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateFolderIntelligenceConfigRequest.php new file mode 100644 index 000000000000..8affd1ed99e9 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateFolderIntelligenceConfigRequest.php @@ -0,0 +1,185 @@ +google.storage.control.v2.UpdateFolderIntelligenceConfigRequest + */ +class UpdateFolderIntelligenceConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `IntelligenceConfig` resource to be updated. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig intelligence_config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $intelligence_config = null; + /** + * Required. The `update_mask` that specifies the fields within the + * `IntelligenceConfig` resource that should be modified by this update. Only + * the listed fields are updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Optional. The ID that uniquely identifies the request, preventing duplicate + * processing. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig $intelligenceConfig Required. The `IntelligenceConfig` resource to be updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. The `update_mask` that specifies the fields within the + * `IntelligenceConfig` resource that should be modified by this update. Only + * the listed fields are updated. + * + * @return \Google\Cloud\Storage\Control\V2\UpdateFolderIntelligenceConfigRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Storage\Control\V2\IntelligenceConfig $intelligenceConfig, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setIntelligenceConfig($intelligenceConfig) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig $intelligence_config + * Required. The `IntelligenceConfig` resource to be updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The `update_mask` that specifies the fields within the + * `IntelligenceConfig` resource that should be modified by this update. Only + * the listed fields are updated. + * @type string $request_id + * Optional. The ID that uniquely identifies the request, preventing duplicate + * processing. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `IntelligenceConfig` resource to be updated. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig intelligence_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig|null + */ + public function getIntelligenceConfig() + { + return $this->intelligence_config; + } + + public function hasIntelligenceConfig() + { + return isset($this->intelligence_config); + } + + public function clearIntelligenceConfig() + { + unset($this->intelligence_config); + } + + /** + * Required. The `IntelligenceConfig` resource to be updated. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig intelligence_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig $var + * @return $this + */ + public function setIntelligenceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig::class); + $this->intelligence_config = $var; + + return $this; + } + + /** + * Required. The `update_mask` that specifies the fields within the + * `IntelligenceConfig` resource that should be modified by this update. Only + * the listed fields are updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The `update_mask` that specifies the fields within the + * `IntelligenceConfig` resource that should be modified by this update. Only + * the listed fields are updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Optional. The ID that uniquely identifies the request, preventing duplicate + * processing. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. The ID that uniquely identifies the request, preventing duplicate + * processing. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateManagedFolderRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateManagedFolderRequest.php new file mode 100644 index 000000000000..270f7f765f84 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateManagedFolderRequest.php @@ -0,0 +1,315 @@ +google.storage.control.v2.UpdateManagedFolderRequest + */ +class UpdateManagedFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Properties of the managed folder being updated. Currently, this + * RPC only supports updating the `rapid_cache_config` field in + * `managed_folder`. + * + * Generated from protobuf field .google.storage.control.v2.ManagedFolder managed_folder = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $managed_folder = null; + /** + * Optional. Update mask for managed_folder. + * Currently, this RPC only supports updating the `rapid_cache_config` + * field in `managed_folder`. This field also supports update mask for the + * subfields in the map of `rapid_cache_config`. The user can specify the + * update mask for `rapid_cache_config.policies` and + * `rapid_cache_config.policies.`, but patching is not supported for + * a field within `RapidCachePolicy.policies.`, like + * rapid_cache_config.policies.[key].ingest_on_write. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Optional. The operation succeeds conditional on the managed folder's + * current metageneration matching the value here specified. + * + * Generated from protobuf field optional int64 if_metageneration_match = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $if_metageneration_match = null; + /** + * Optional. The operation succeeds conditional on the managed folder's + * current metageneration NOT matching the value here specified. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $if_metageneration_not_match = null; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param \Google\Cloud\Storage\Control\V2\ManagedFolder $managedFolder Required. Properties of the managed folder being updated. Currently, this + * RPC only supports updating the `rapid_cache_config` field in + * `managed_folder`. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Update mask for managed_folder. + * Currently, this RPC only supports updating the `rapid_cache_config` + * field in `managed_folder`. This field also supports update mask for the + * subfields in the map of `rapid_cache_config`. The user can specify the + * update mask for `rapid_cache_config.policies` and + * `rapid_cache_config.policies.`, but patching is not supported for + * a field within `RapidCachePolicy.policies.`, like + * rapid_cache_config.policies.[key].ingest_on_write. + * + * @return \Google\Cloud\Storage\Control\V2\UpdateManagedFolderRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Storage\Control\V2\ManagedFolder $managedFolder, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setManagedFolder($managedFolder) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\ManagedFolder $managed_folder + * Required. Properties of the managed folder being updated. Currently, this + * RPC only supports updating the `rapid_cache_config` field in + * `managed_folder`. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Update mask for managed_folder. + * Currently, this RPC only supports updating the `rapid_cache_config` + * field in `managed_folder`. This field also supports update mask for the + * subfields in the map of `rapid_cache_config`. The user can specify the + * update mask for `rapid_cache_config.policies` and + * `rapid_cache_config.policies.`, but patching is not supported for + * a field within `RapidCachePolicy.policies.`, like + * rapid_cache_config.policies.[key].ingest_on_write. + * @type int|string $if_metageneration_match + * Optional. The operation succeeds conditional on the managed folder's + * current metageneration matching the value here specified. + * @type int|string $if_metageneration_not_match + * Optional. The operation succeeds conditional on the managed folder's + * current metageneration NOT matching the value here specified. + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. Properties of the managed folder being updated. Currently, this + * RPC only supports updating the `rapid_cache_config` field in + * `managed_folder`. + * + * Generated from protobuf field .google.storage.control.v2.ManagedFolder managed_folder = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Storage\Control\V2\ManagedFolder|null + */ + public function getManagedFolder() + { + return $this->managed_folder; + } + + public function hasManagedFolder() + { + return isset($this->managed_folder); + } + + public function clearManagedFolder() + { + unset($this->managed_folder); + } + + /** + * Required. Properties of the managed folder being updated. Currently, this + * RPC only supports updating the `rapid_cache_config` field in + * `managed_folder`. + * + * Generated from protobuf field .google.storage.control.v2.ManagedFolder managed_folder = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Storage\Control\V2\ManagedFolder $var + * @return $this + */ + public function setManagedFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\ManagedFolder::class); + $this->managed_folder = $var; + + return $this; + } + + /** + * Optional. Update mask for managed_folder. + * Currently, this RPC only supports updating the `rapid_cache_config` + * field in `managed_folder`. This field also supports update mask for the + * subfields in the map of `rapid_cache_config`. The user can specify the + * update mask for `rapid_cache_config.policies` and + * `rapid_cache_config.policies.`, but patching is not supported for + * a field within `RapidCachePolicy.policies.`, like + * rapid_cache_config.policies.[key].ingest_on_write. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. Update mask for managed_folder. + * Currently, this RPC only supports updating the `rapid_cache_config` + * field in `managed_folder`. This field also supports update mask for the + * subfields in the map of `rapid_cache_config`. The user can specify the + * update mask for `rapid_cache_config.policies` and + * `rapid_cache_config.policies.`, but patching is not supported for + * a field within `RapidCachePolicy.policies.`, like + * rapid_cache_config.policies.[key].ingest_on_write. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Optional. The operation succeeds conditional on the managed folder's + * current metageneration matching the value here specified. + * + * Generated from protobuf field optional int64 if_metageneration_match = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getIfMetagenerationMatch() + { + return isset($this->if_metageneration_match) ? $this->if_metageneration_match : 0; + } + + public function hasIfMetagenerationMatch() + { + return isset($this->if_metageneration_match); + } + + public function clearIfMetagenerationMatch() + { + unset($this->if_metageneration_match); + } + + /** + * Optional. The operation succeeds conditional on the managed folder's + * current metageneration matching the value here specified. + * + * Generated from protobuf field optional int64 if_metageneration_match = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setIfMetagenerationMatch($var) + { + GPBUtil::checkInt64($var); + $this->if_metageneration_match = $var; + + return $this; + } + + /** + * Optional. The operation succeeds conditional on the managed folder's + * current metageneration NOT matching the value here specified. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getIfMetagenerationNotMatch() + { + return isset($this->if_metageneration_not_match) ? $this->if_metageneration_not_match : 0; + } + + public function hasIfMetagenerationNotMatch() + { + return isset($this->if_metageneration_not_match); + } + + public function clearIfMetagenerationNotMatch() + { + unset($this->if_metageneration_not_match); + } + + /** + * Optional. The operation succeeds conditional on the managed folder's + * current metageneration NOT matching the value here specified. + * + * Generated from protobuf field optional int64 if_metageneration_not_match = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setIfMetagenerationNotMatch($var) + { + GPBUtil::checkInt64($var); + $this->if_metageneration_not_match = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. + * + * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateOrganizationIntelligenceConfigRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateOrganizationIntelligenceConfigRequest.php new file mode 100644 index 000000000000..9d0844b3e02e --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateOrganizationIntelligenceConfigRequest.php @@ -0,0 +1,185 @@ +google.storage.control.v2.UpdateOrganizationIntelligenceConfigRequest + */ +class UpdateOrganizationIntelligenceConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `IntelligenceConfig` resource to be updated. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig intelligence_config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $intelligence_config = null; + /** + * Required. The `update_mask` that specifies the fields within the + * `IntelligenceConfig` resource that should be modified by this update. Only + * the listed fields are updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Optional. The ID that uniquely identifies the request, preventing duplicate + * processing. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig $intelligenceConfig Required. The `IntelligenceConfig` resource to be updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. The `update_mask` that specifies the fields within the + * `IntelligenceConfig` resource that should be modified by this update. Only + * the listed fields are updated. + * + * @return \Google\Cloud\Storage\Control\V2\UpdateOrganizationIntelligenceConfigRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Storage\Control\V2\IntelligenceConfig $intelligenceConfig, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setIntelligenceConfig($intelligenceConfig) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig $intelligence_config + * Required. The `IntelligenceConfig` resource to be updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The `update_mask` that specifies the fields within the + * `IntelligenceConfig` resource that should be modified by this update. Only + * the listed fields are updated. + * @type string $request_id + * Optional. The ID that uniquely identifies the request, preventing duplicate + * processing. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `IntelligenceConfig` resource to be updated. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig intelligence_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig|null + */ + public function getIntelligenceConfig() + { + return $this->intelligence_config; + } + + public function hasIntelligenceConfig() + { + return isset($this->intelligence_config); + } + + public function clearIntelligenceConfig() + { + unset($this->intelligence_config); + } + + /** + * Required. The `IntelligenceConfig` resource to be updated. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig intelligence_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig $var + * @return $this + */ + public function setIntelligenceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig::class); + $this->intelligence_config = $var; + + return $this; + } + + /** + * Required. The `update_mask` that specifies the fields within the + * `IntelligenceConfig` resource that should be modified by this update. Only + * the listed fields are updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The `update_mask` that specifies the fields within the + * `IntelligenceConfig` resource that should be modified by this update. Only + * the listed fields are updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Optional. The ID that uniquely identifies the request, preventing duplicate + * processing. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. The ID that uniquely identifies the request, preventing duplicate + * processing. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateProjectIntelligenceConfigRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateProjectIntelligenceConfigRequest.php new file mode 100644 index 000000000000..46b8b8ca8ef2 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateProjectIntelligenceConfigRequest.php @@ -0,0 +1,185 @@ +google.storage.control.v2.UpdateProjectIntelligenceConfigRequest + */ +class UpdateProjectIntelligenceConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `IntelligenceConfig` resource to be updated. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig intelligence_config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $intelligence_config = null; + /** + * Required. The `update_mask` that specifies the fields within the + * `IntelligenceConfig` resource that should be modified by this update. Only + * the listed fields are updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Optional. The ID that uniquely identifies the request, preventing duplicate + * processing. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig $intelligenceConfig Required. The `IntelligenceConfig` resource to be updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. The `update_mask` that specifies the fields within the + * `IntelligenceConfig` resource that should be modified by this update. Only + * the listed fields are updated. + * + * @return \Google\Cloud\Storage\Control\V2\UpdateProjectIntelligenceConfigRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Storage\Control\V2\IntelligenceConfig $intelligenceConfig, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setIntelligenceConfig($intelligenceConfig) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig $intelligence_config + * Required. The `IntelligenceConfig` resource to be updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The `update_mask` that specifies the fields within the + * `IntelligenceConfig` resource that should be modified by this update. Only + * the listed fields are updated. + * @type string $request_id + * Optional. The ID that uniquely identifies the request, preventing duplicate + * processing. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `IntelligenceConfig` resource to be updated. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig intelligence_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig|null + */ + public function getIntelligenceConfig() + { + return $this->intelligence_config; + } + + public function hasIntelligenceConfig() + { + return isset($this->intelligence_config); + } + + public function clearIntelligenceConfig() + { + unset($this->intelligence_config); + } + + /** + * Required. The `IntelligenceConfig` resource to be updated. + * + * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig intelligence_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig $var + * @return $this + */ + public function setIntelligenceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig::class); + $this->intelligence_config = $var; + + return $this; + } + + /** + * Required. The `update_mask` that specifies the fields within the + * `IntelligenceConfig` resource that should be modified by this update. Only + * the listed fields are updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The `update_mask` that specifies the fields within the + * `IntelligenceConfig` resource that should be modified by this update. Only + * the listed fields are updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Optional. The ID that uniquely identifies the request, preventing duplicate + * processing. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. The ID that uniquely identifies the request, preventing duplicate + * processing. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateRapidCacheMetadata.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateRapidCacheMetadata.php new file mode 100644 index 000000000000..8a208517e72c --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateRapidCacheMetadata.php @@ -0,0 +1,366 @@ +google.storage.control.v2.UpdateRapidCacheMetadata + */ +class UpdateRapidCacheMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Generic metadata for the long running operation. + * + * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + */ + protected $common_metadata = null; + /** + * Rapid Cache ID. + * + * Generated from protobuf field optional string rapid_cache_id = 2; + */ + protected $rapid_cache_id = null; + /** + * The zone in which the cache instance is running. For example, + * us-central1-a. + * + * Generated from protobuf field optional string zone = 3; + */ + protected $zone = null; + /** + * Rapid Cache entry's TTL between 1h and 7days. A cache-level config that + * is applied to all new cache entries on admission. If `ttl` is pending + * update, this field equals to the new value specified in the Update request. + * + * Generated from protobuf field optional .google.protobuf.Duration ttl = 4; + */ + protected $ttl = null; + /** + * Optional. Rapid Cache entry Admission Policy in kebab-case (e.g., + * "admit-on-first-miss"). If `admission_policy` is pending + * update, this field equals to the new value specified in the Update request. + * + * Generated from protobuf field optional string admission_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $admission_policy = null; + /** + * Specifies whether objects are ingested into the cache upon write. If not + * set, it defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 6; + */ + protected $ingest_on_write = null; + /** + * Optional. The type of cache. Either rapid cache or rapid cache ultra. + * + * Generated from protobuf field optional string cache_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $cache_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $common_metadata + * Generic metadata for the long running operation. + * @type string $rapid_cache_id + * Rapid Cache ID. + * @type string $zone + * The zone in which the cache instance is running. For example, + * us-central1-a. + * @type \Google\Protobuf\Duration $ttl + * Rapid Cache entry's TTL between 1h and 7days. A cache-level config that + * is applied to all new cache entries on admission. If `ttl` is pending + * update, this field equals to the new value specified in the Update request. + * @type string $admission_policy + * Optional. Rapid Cache entry Admission Policy in kebab-case (e.g., + * "admit-on-first-miss"). If `admission_policy` is pending + * update, this field equals to the new value specified in the Update request. + * @type bool $ingest_on_write + * Specifies whether objects are ingested into the cache upon write. If not + * set, it defaults to false. + * @type string $cache_type + * Optional. The type of cache. Either rapid cache or rapid cache ultra. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Generic metadata for the long running operation. + * + * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * @return \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata|null + */ + public function getCommonMetadata() + { + return $this->common_metadata; + } + + public function hasCommonMetadata() + { + return isset($this->common_metadata); + } + + public function clearCommonMetadata() + { + unset($this->common_metadata); + } + + /** + * Generic metadata for the long running operation. + * + * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * @param \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $var + * @return $this + */ + public function setCommonMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata::class); + $this->common_metadata = $var; + + return $this; + } + + /** + * Rapid Cache ID. + * + * Generated from protobuf field optional string rapid_cache_id = 2; + * @return string + */ + public function getRapidCacheId() + { + return isset($this->rapid_cache_id) ? $this->rapid_cache_id : ''; + } + + public function hasRapidCacheId() + { + return isset($this->rapid_cache_id); + } + + public function clearRapidCacheId() + { + unset($this->rapid_cache_id); + } + + /** + * Rapid Cache ID. + * + * Generated from protobuf field optional string rapid_cache_id = 2; + * @param string $var + * @return $this + */ + public function setRapidCacheId($var) + { + GPBUtil::checkString($var, True); + $this->rapid_cache_id = $var; + + return $this; + } + + /** + * The zone in which the cache instance is running. For example, + * us-central1-a. + * + * Generated from protobuf field optional string zone = 3; + * @return string + */ + public function getZone() + { + return isset($this->zone) ? $this->zone : ''; + } + + public function hasZone() + { + return isset($this->zone); + } + + public function clearZone() + { + unset($this->zone); + } + + /** + * The zone in which the cache instance is running. For example, + * us-central1-a. + * + * Generated from protobuf field optional string zone = 3; + * @param string $var + * @return $this + */ + public function setZone($var) + { + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Rapid Cache entry's TTL between 1h and 7days. A cache-level config that + * is applied to all new cache entries on admission. If `ttl` is pending + * update, this field equals to the new value specified in the Update request. + * + * Generated from protobuf field optional .google.protobuf.Duration ttl = 4; + * @return \Google\Protobuf\Duration|null + */ + public function getTtl() + { + return $this->ttl; + } + + public function hasTtl() + { + return isset($this->ttl); + } + + public function clearTtl() + { + unset($this->ttl); + } + + /** + * Rapid Cache entry's TTL between 1h and 7days. A cache-level config that + * is applied to all new cache entries on admission. If `ttl` is pending + * update, this field equals to the new value specified in the Update request. + * + * Generated from protobuf field optional .google.protobuf.Duration ttl = 4; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setTtl($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->ttl = $var; + + return $this; + } + + /** + * Optional. Rapid Cache entry Admission Policy in kebab-case (e.g., + * "admit-on-first-miss"). If `admission_policy` is pending + * update, this field equals to the new value specified in the Update request. + * + * Generated from protobuf field optional string admission_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAdmissionPolicy() + { + return isset($this->admission_policy) ? $this->admission_policy : ''; + } + + public function hasAdmissionPolicy() + { + return isset($this->admission_policy); + } + + public function clearAdmissionPolicy() + { + unset($this->admission_policy); + } + + /** + * Optional. Rapid Cache entry Admission Policy in kebab-case (e.g., + * "admit-on-first-miss"). If `admission_policy` is pending + * update, this field equals to the new value specified in the Update request. + * + * Generated from protobuf field optional string admission_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAdmissionPolicy($var) + { + GPBUtil::checkString($var, True); + $this->admission_policy = $var; + + return $this; + } + + /** + * Specifies whether objects are ingested into the cache upon write. If not + * set, it defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 6; + * @return bool + */ + public function getIngestOnWrite() + { + return isset($this->ingest_on_write) ? $this->ingest_on_write : false; + } + + public function hasIngestOnWrite() + { + return isset($this->ingest_on_write); + } + + public function clearIngestOnWrite() + { + unset($this->ingest_on_write); + } + + /** + * Specifies whether objects are ingested into the cache upon write. If not + * set, it defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 6; + * @param bool $var + * @return $this + */ + public function setIngestOnWrite($var) + { + GPBUtil::checkBool($var); + $this->ingest_on_write = $var; + + return $this; + } + + /** + * Optional. The type of cache. Either rapid cache or rapid cache ultra. + * + * Generated from protobuf field optional string cache_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCacheType() + { + return isset($this->cache_type) ? $this->cache_type : ''; + } + + public function hasCacheType() + { + return isset($this->cache_type); + } + + public function clearCacheType() + { + unset($this->cache_type); + } + + /** + * Optional. The type of cache. Either rapid cache or rapid cache ultra. + * + * Generated from protobuf field optional string cache_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCacheType($var) + { + GPBUtil::checkString($var, True); + $this->cache_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateRapidCacheRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateRapidCacheRequest.php new file mode 100644 index 000000000000..357d877a5906 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateRapidCacheRequest.php @@ -0,0 +1,210 @@ +google.storage.control.v2.UpdateRapidCacheRequest + */ +class UpdateRapidCacheRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The RapidCache to update. + * + * Generated from protobuf field .google.storage.control.v2.RapidCache rapid_cache = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $rapid_cache = null; + /** + * Required. List of fields to be updated. Mutable fields of RapidCache + * include `ttl`, `admission_policy` and `ingest_on_write`. + * To specify ALL fields, specify a single field with the value `*`. Note: We + * recommend against doing this. If a new field is introduced at a later time, + * an older client updating with the `*` may accidentally reset the new + * field's value. + * Not specifying any fields is an error. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param \Google\Cloud\Storage\Control\V2\RapidCache $rapidCache Required. The RapidCache to update. + * @param \Google\Protobuf\FieldMask $updateMask Required. List of fields to be updated. Mutable fields of RapidCache + * include `ttl`, `admission_policy` and `ingest_on_write`. + * + * To specify ALL fields, specify a single field with the value `*`. Note: We + * recommend against doing this. If a new field is introduced at a later time, + * an older client updating with the `*` may accidentally reset the new + * field's value. + * + * Not specifying any fields is an error. + * + * @return \Google\Cloud\Storage\Control\V2\UpdateRapidCacheRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Storage\Control\V2\RapidCache $rapidCache, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setRapidCache($rapidCache) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Storage\Control\V2\RapidCache $rapid_cache + * Required. The RapidCache to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. List of fields to be updated. Mutable fields of RapidCache + * include `ttl`, `admission_policy` and `ingest_on_write`. + * To specify ALL fields, specify a single field with the value `*`. Note: We + * recommend against doing this. If a new field is introduced at a later time, + * an older client updating with the `*` may accidentally reset the new + * field's value. + * Not specifying any fields is an error. + * @type string $request_id + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); + parent::__construct($data); + } + + /** + * Required. The RapidCache to update. + * + * Generated from protobuf field .google.storage.control.v2.RapidCache rapid_cache = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Storage\Control\V2\RapidCache|null + */ + public function getRapidCache() + { + return $this->rapid_cache; + } + + public function hasRapidCache() + { + return isset($this->rapid_cache); + } + + public function clearRapidCache() + { + unset($this->rapid_cache); + } + + /** + * Required. The RapidCache to update. + * + * Generated from protobuf field .google.storage.control.v2.RapidCache rapid_cache = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Storage\Control\V2\RapidCache $var + * @return $this + */ + public function setRapidCache($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\RapidCache::class); + $this->rapid_cache = $var; + + return $this; + } + + /** + * Required. List of fields to be updated. Mutable fields of RapidCache + * include `ttl`, `admission_policy` and `ingest_on_write`. + * To specify ALL fields, specify a single field with the value `*`. Note: We + * recommend against doing this. If a new field is introduced at a later time, + * an older client updating with the `*` may accidentally reset the new + * field's value. + * Not specifying any fields is an error. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. List of fields to be updated. Mutable fields of RapidCache + * include `ttl`, `admission_policy` and `ingest_on_write`. + * To specify ALL fields, specify a single field with the value `*`. Note: We + * recommend against doing this. If a new field is introduced at a later time, + * an older client updating with the `*` may accidentally reset the new + * field's value. + * Not specifying any fields is an error. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A unique identifier for this request. UUID is the recommended + * format, but other formats are still accepted. This request is only + * idempotent if a `request_id` is provided. + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_anywhere_cache.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_anywhere_cache.php new file mode 100644 index 000000000000..f1abdf077849 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_anywhere_cache.php @@ -0,0 +1,86 @@ +setParent($formattedParent) + ->setAnywhereCache($anywhereCache); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $storageControlClient->createAnywhereCache($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AnywhereCache $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = StorageControlClient::bucketName('[PROJECT]', '[BUCKET]'); + + create_anywhere_cache_sample($formattedParent); +} +// [END storage_v2_generated_StorageControl_CreateAnywhereCache_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_folder.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_folder.php new file mode 100644 index 000000000000..a3d84c55b7fe --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_folder.php @@ -0,0 +1,82 @@ +setParent($formattedParent) + ->setFolder($folder) + ->setFolderId($folderId); + + // Call the API and handle any network failures. + try { + /** @var Folder $response */ + $response = $storageControlClient->createFolder($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = StorageControlClient::bucketName('[PROJECT]', '[BUCKET]'); + $folderId = '[FOLDER_ID]'; + + create_folder_sample($formattedParent, $folderId); +} +// [END storage_v2_generated_StorageControl_CreateFolder_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_managed_folder.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_managed_folder.php new file mode 100644 index 000000000000..115da2605b90 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_managed_folder.php @@ -0,0 +1,77 @@ +setParent($formattedParent) + ->setManagedFolder($managedFolder) + ->setManagedFolderId($managedFolderId); + + // Call the API and handle any network failures. + try { + /** @var ManagedFolder $response */ + $response = $storageControlClient->createManagedFolder($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = StorageControlClient::bucketName('[PROJECT]', '[BUCKET]'); + $managedFolderId = '[MANAGED_FOLDER_ID]'; + + create_managed_folder_sample($formattedParent, $managedFolderId); +} +// [END storage_v2_generated_StorageControl_CreateManagedFolder_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_rapid_cache.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_rapid_cache.php new file mode 100644 index 000000000000..9f79e520cd5e --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_rapid_cache.php @@ -0,0 +1,86 @@ +setParent($formattedParent) + ->setRapidCache($rapidCache); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $storageControlClient->createRapidCache($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var RapidCache $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = StorageControlClient::bucketName('[PROJECT]', '[BUCKET]'); + + create_rapid_cache_sample($formattedParent); +} +// [END storage_v2_generated_StorageControl_CreateRapidCache_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_folder.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_folder.php new file mode 100644 index 000000000000..a992870e4ed6 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_folder.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $storageControlClient->deleteFolder($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = StorageControlClient::folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); + + delete_folder_sample($formattedName); +} +// [END storage_v2_generated_StorageControl_DeleteFolder_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_folder_recursive.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_folder_recursive.php new file mode 100644 index 000000000000..8489e59e4945 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_folder_recursive.php @@ -0,0 +1,83 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $storageControlClient->deleteFolderRecursive($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = StorageControlClient::folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); + + delete_folder_recursive_sample($formattedName); +} +// [END storage_v2_generated_StorageControl_DeleteFolderRecursive_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_managed_folder.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_managed_folder.php new file mode 100644 index 000000000000..086301f28714 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_managed_folder.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $storageControlClient->deleteManagedFolder($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = StorageControlClient::managedFolderName( + '[PROJECT]', + '[BUCKET]', + '[MANAGED_FOLDER]' + ); + + delete_managed_folder_sample($formattedName); +} +// [END storage_v2_generated_StorageControl_DeleteManagedFolder_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/disable_anywhere_cache.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/disable_anywhere_cache.php new file mode 100644 index 000000000000..64bdbd4a789b --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/disable_anywhere_cache.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var AnywhereCache $response */ + $response = $storageControlClient->disableAnywhereCache($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = StorageControlClient::anywhereCacheName( + '[PROJECT]', + '[BUCKET]', + '[ANYWHERE_CACHE]' + ); + + disable_anywhere_cache_sample($formattedName); +} +// [END storage_v2_generated_StorageControl_DisableAnywhereCache_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_anywhere_cache.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_anywhere_cache.php new file mode 100644 index 000000000000..1176e557d53e --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_anywhere_cache.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var AnywhereCache $response */ + $response = $storageControlClient->getAnywhereCache($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = StorageControlClient::anywhereCacheName( + '[PROJECT]', + '[BUCKET]', + '[ANYWHERE_CACHE]' + ); + + get_anywhere_cache_sample($formattedName); +} +// [END storage_v2_generated_StorageControl_GetAnywhereCache_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_folder.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_folder.php new file mode 100644 index 000000000000..c8bcd26c27bf --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_folder.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Folder $response */ + $response = $storageControlClient->getFolder($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = StorageControlClient::folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); + + get_folder_sample($formattedName); +} +// [END storage_v2_generated_StorageControl_GetFolder_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_folder_intelligence_config.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_folder_intelligence_config.php new file mode 100644 index 000000000000..363c7e925757 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_folder_intelligence_config.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var IntelligenceConfig $response */ + $response = $storageControlClient->getFolderIntelligenceConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = StorageControlClient::intelligenceConfigName('[FOLDER]', '[LOCATION]'); + + get_folder_intelligence_config_sample($formattedName); +} +// [END storage_v2_generated_StorageControl_GetFolderIntelligenceConfig_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_iam_policy.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_iam_policy.php new file mode 100644 index 000000000000..9f4534c8b9f7 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_iam_policy.php @@ -0,0 +1,75 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $storageControlClient->getIamPolicy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END storage_v2_generated_StorageControl_GetIamPolicy_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_intelligence_finding.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_intelligence_finding.php new file mode 100644 index 000000000000..a84e412b4c49 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_intelligence_finding.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var IntelligenceFinding $response */ + $response = $storageControlClient->getIntelligenceFinding($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = StorageControlClient::intelligenceFindingName( + '[PROJECT]', + '[LOCATION]', + '[INTELLIGENCE_FINDING]' + ); + + get_intelligence_finding_sample($formattedName); +} +// [END storage_v2_generated_StorageControl_GetIntelligenceFinding_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_intelligence_finding_revision.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_intelligence_finding_revision.php new file mode 100644 index 000000000000..f30d3ee03a24 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_intelligence_finding_revision.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var IntelligenceFindingRevision $response */ + $response = $storageControlClient->getIntelligenceFindingRevision($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = StorageControlClient::intelligenceFindingRevisionName( + '[PROJECT]', + '[LOCATION]', + '[INTELLIGENCE_FINDING]', + '[REVISION]' + ); + + get_intelligence_finding_revision_sample($formattedName); +} +// [END storage_v2_generated_StorageControl_GetIntelligenceFindingRevision_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_managed_folder.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_managed_folder.php new file mode 100644 index 000000000000..1a8f281b262c --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_managed_folder.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ManagedFolder $response */ + $response = $storageControlClient->getManagedFolder($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = StorageControlClient::managedFolderName( + '[PROJECT]', + '[BUCKET]', + '[MANAGED_FOLDER]' + ); + + get_managed_folder_sample($formattedName); +} +// [END storage_v2_generated_StorageControl_GetManagedFolder_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_organization_intelligence_config.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_organization_intelligence_config.php new file mode 100644 index 000000000000..a50fa068a7d1 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_organization_intelligence_config.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var IntelligenceConfig $response */ + $response = $storageControlClient->getOrganizationIntelligenceConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = StorageControlClient::intelligenceConfigName('[FOLDER]', '[LOCATION]'); + + get_organization_intelligence_config_sample($formattedName); +} +// [END storage_v2_generated_StorageControl_GetOrganizationIntelligenceConfig_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_project_intelligence_config.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_project_intelligence_config.php new file mode 100644 index 000000000000..c5ffef33f7be --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_project_intelligence_config.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var IntelligenceConfig $response */ + $response = $storageControlClient->getProjectIntelligenceConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = StorageControlClient::intelligenceConfigName('[FOLDER]', '[LOCATION]'); + + get_project_intelligence_config_sample($formattedName); +} +// [END storage_v2_generated_StorageControl_GetProjectIntelligenceConfig_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_rapid_cache.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_rapid_cache.php new file mode 100644 index 000000000000..3463d937ed32 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_rapid_cache.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var RapidCache $response */ + $response = $storageControlClient->getRapidCache($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = StorageControlClient::rapidCacheName('[PROJECT]', '[BUCKET]', '[RAPID_CACHE]'); + + get_rapid_cache_sample($formattedName); +} +// [END storage_v2_generated_StorageControl_GetRapidCache_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_storage_layout.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_storage_layout.php new file mode 100644 index 000000000000..ee089863ac32 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_storage_layout.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var StorageLayout $response */ + $response = $storageControlClient->getStorageLayout($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = StorageControlClient::storageLayoutName('[PROJECT]', '[BUCKET]'); + + get_storage_layout_sample($formattedName); +} +// [END storage_v2_generated_StorageControl_GetStorageLayout_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_anywhere_caches.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_anywhere_caches.php new file mode 100644 index 000000000000..6d6754a83567 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_anywhere_caches.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $storageControlClient->listAnywhereCaches($request); + + /** @var AnywhereCache $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = StorageControlClient::bucketName('[PROJECT]', '[BUCKET]'); + + list_anywhere_caches_sample($formattedParent); +} +// [END storage_v2_generated_StorageControl_ListAnywhereCaches_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_folders.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_folders.php new file mode 100644 index 000000000000..20a07c85fc6b --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_folders.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $storageControlClient->listFolders($request); + + /** @var Folder $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = StorageControlClient::bucketName('[PROJECT]', '[BUCKET]'); + + list_folders_sample($formattedParent); +} +// [END storage_v2_generated_StorageControl_ListFolders_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_intelligence_finding_revisions.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_intelligence_finding_revisions.php new file mode 100644 index 000000000000..6f49c5f48f3e --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_intelligence_finding_revisions.php @@ -0,0 +1,83 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $storageControlClient->listIntelligenceFindingRevisions($request); + + /** @var IntelligenceFindingRevision $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = StorageControlClient::intelligenceFindingName( + '[PROJECT]', + '[LOCATION]', + '[INTELLIGENCE_FINDING]' + ); + + list_intelligence_finding_revisions_sample($formattedParent); +} +// [END storage_v2_generated_StorageControl_ListIntelligenceFindingRevisions_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_intelligence_findings.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_intelligence_findings.php new file mode 100644 index 000000000000..e012eae9ecab --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_intelligence_findings.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $storageControlClient->listIntelligenceFindings($request); + + /** @var IntelligenceFinding $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = StorageControlClient::locationName('[PROJECT]', '[LOCATION]'); + + list_intelligence_findings_sample($formattedParent); +} +// [END storage_v2_generated_StorageControl_ListIntelligenceFindings_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_managed_folders.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_managed_folders.php new file mode 100644 index 000000000000..809d0486c77a --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_managed_folders.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $storageControlClient->listManagedFolders($request); + + /** @var ManagedFolder $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = StorageControlClient::bucketName('[PROJECT]', '[BUCKET]'); + + list_managed_folders_sample($formattedParent); +} +// [END storage_v2_generated_StorageControl_ListManagedFolders_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_rapid_caches.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_rapid_caches.php new file mode 100644 index 000000000000..3dddde9eba11 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_rapid_caches.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $storageControlClient->listRapidCaches($request); + + /** @var RapidCache $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = StorageControlClient::bucketName('[PROJECT]', '[BUCKET]'); + + list_rapid_caches_sample($formattedParent); +} +// [END storage_v2_generated_StorageControl_ListRapidCaches_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/pause_anywhere_cache.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/pause_anywhere_cache.php new file mode 100644 index 000000000000..b9deb9aba4fa --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/pause_anywhere_cache.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var AnywhereCache $response */ + $response = $storageControlClient->pauseAnywhereCache($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = StorageControlClient::anywhereCacheName( + '[PROJECT]', + '[BUCKET]', + '[ANYWHERE_CACHE]' + ); + + pause_anywhere_cache_sample($formattedName); +} +// [END storage_v2_generated_StorageControl_PauseAnywhereCache_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/rename_folder.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/rename_folder.php new file mode 100644 index 000000000000..0e4ec186638c --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/rename_folder.php @@ -0,0 +1,90 @@ +setName($formattedName) + ->setDestinationFolderId($destinationFolderId); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $storageControlClient->renameFolder($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Folder $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = StorageControlClient::folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); + $destinationFolderId = '[DESTINATION_FOLDER_ID]'; + + rename_folder_sample($formattedName, $destinationFolderId); +} +// [END storage_v2_generated_StorageControl_RenameFolder_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/resume_anywhere_cache.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/resume_anywhere_cache.php new file mode 100644 index 000000000000..c2ae6bf6690f --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/resume_anywhere_cache.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var AnywhereCache $response */ + $response = $storageControlClient->resumeAnywhereCache($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = StorageControlClient::anywhereCacheName( + '[PROJECT]', + '[BUCKET]', + '[ANYWHERE_CACHE]' + ); + + resume_anywhere_cache_sample($formattedName); +} +// [END storage_v2_generated_StorageControl_ResumeAnywhereCache_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/set_iam_policy.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/set_iam_policy.php new file mode 100644 index 000000000000..8c1c9cfa0f7b --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/set_iam_policy.php @@ -0,0 +1,77 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $storageControlClient->setIamPolicy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END storage_v2_generated_StorageControl_SetIamPolicy_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/summarize_intelligence_findings.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/summarize_intelligence_findings.php new file mode 100644 index 000000000000..ebd78fc57516 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/summarize_intelligence_findings.php @@ -0,0 +1,80 @@ +setParent($parent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $storageControlClient->summarizeIntelligenceFindings($request); + + /** @var FindingSummary $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $parent = '[PARENT]'; + + summarize_intelligence_findings_sample($parent); +} +// [END storage_v2_generated_StorageControl_SummarizeIntelligenceFindings_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/test_iam_permissions.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/test_iam_permissions.php new file mode 100644 index 000000000000..086e576654b7 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/test_iam_permissions.php @@ -0,0 +1,84 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $storageControlClient->testIamPermissions($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + $permissionsElement = '[PERMISSIONS]'; + + test_iam_permissions_sample($resource, $permissionsElement); +} +// [END storage_v2_generated_StorageControl_TestIamPermissions_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_anywhere_cache.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_anywhere_cache.php new file mode 100644 index 000000000000..cf85b1f97fb6 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_anywhere_cache.php @@ -0,0 +1,75 @@ +setAnywhereCache($anywhereCache) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $storageControlClient->updateAnywhereCache($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AnywhereCache $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END storage_v2_generated_StorageControl_UpdateAnywhereCache_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_folder_intelligence_config.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_folder_intelligence_config.php new file mode 100644 index 000000000000..52f9ea64a70c --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_folder_intelligence_config.php @@ -0,0 +1,62 @@ +setIntelligenceConfig($intelligenceConfig) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var IntelligenceConfig $response */ + $response = $storageControlClient->updateFolderIntelligenceConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END storage_v2_generated_StorageControl_UpdateFolderIntelligenceConfig_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_managed_folder.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_managed_folder.php new file mode 100644 index 000000000000..6415d7c29803 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_managed_folder.php @@ -0,0 +1,60 @@ +setManagedFolder($managedFolder); + + // Call the API and handle any network failures. + try { + /** @var ManagedFolder $response */ + $response = $storageControlClient->updateManagedFolder($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END storage_v2_generated_StorageControl_UpdateManagedFolder_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_organization_intelligence_config.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_organization_intelligence_config.php new file mode 100644 index 000000000000..b4540c406cd5 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_organization_intelligence_config.php @@ -0,0 +1,62 @@ +setIntelligenceConfig($intelligenceConfig) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var IntelligenceConfig $response */ + $response = $storageControlClient->updateOrganizationIntelligenceConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END storage_v2_generated_StorageControl_UpdateOrganizationIntelligenceConfig_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_project_intelligence_config.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_project_intelligence_config.php new file mode 100644 index 000000000000..068360da11ff --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_project_intelligence_config.php @@ -0,0 +1,62 @@ +setIntelligenceConfig($intelligenceConfig) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var IntelligenceConfig $response */ + $response = $storageControlClient->updateProjectIntelligenceConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END storage_v2_generated_StorageControl_UpdateProjectIntelligenceConfig_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_rapid_cache.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_rapid_cache.php new file mode 100644 index 000000000000..937bbc35b11b --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_rapid_cache.php @@ -0,0 +1,74 @@ +setRapidCache($rapidCache) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $storageControlClient->updateRapidCache($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var RapidCache $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END storage_v2_generated_StorageControl_UpdateRapidCache_sync] diff --git a/owl-bot-staging/StorageControl/v2/src/V2/Client/StorageControlClient.php b/owl-bot-staging/StorageControl/v2/src/V2/Client/StorageControlClient.php new file mode 100644 index 000000000000..63722a9cdc64 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/src/V2/Client/StorageControlClient.php @@ -0,0 +1,1594 @@ + createAnywhereCacheAsync(CreateAnywhereCacheRequest $request, array $optionalArgs = []) + * @method PromiseInterface createFolderAsync(CreateFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface createManagedFolderAsync(CreateManagedFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface createRapidCacheAsync(CreateRapidCacheRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFolderAsync(DeleteFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFolderRecursiveAsync(DeleteFolderRecursiveRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteManagedFolderAsync(DeleteManagedFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface disableAnywhereCacheAsync(DisableAnywhereCacheRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAnywhereCacheAsync(GetAnywhereCacheRequest $request, array $optionalArgs = []) + * @method PromiseInterface getFolderAsync(GetFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface getFolderIntelligenceConfigAsync(GetFolderIntelligenceConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIntelligenceFindingAsync(GetIntelligenceFindingRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIntelligenceFindingRevisionAsync(GetIntelligenceFindingRevisionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getManagedFolderAsync(GetManagedFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface getOrganizationIntelligenceConfigAsync(GetOrganizationIntelligenceConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getProjectIntelligenceConfigAsync(GetProjectIntelligenceConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRapidCacheAsync(GetRapidCacheRequest $request, array $optionalArgs = []) + * @method PromiseInterface getStorageLayoutAsync(GetStorageLayoutRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAnywhereCachesAsync(ListAnywhereCachesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listFoldersAsync(ListFoldersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listIntelligenceFindingRevisionsAsync(ListIntelligenceFindingRevisionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listIntelligenceFindingsAsync(ListIntelligenceFindingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listManagedFoldersAsync(ListManagedFoldersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRapidCachesAsync(ListRapidCachesRequest $request, array $optionalArgs = []) + * @method PromiseInterface pauseAnywhereCacheAsync(PauseAnywhereCacheRequest $request, array $optionalArgs = []) + * @method PromiseInterface renameFolderAsync(RenameFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface resumeAnywhereCacheAsync(ResumeAnywhereCacheRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface summarizeIntelligenceFindingsAsync(SummarizeIntelligenceFindingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateAnywhereCacheAsync(UpdateAnywhereCacheRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateFolderIntelligenceConfigAsync(UpdateFolderIntelligenceConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateManagedFolderAsync(UpdateManagedFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateOrganizationIntelligenceConfigAsync(UpdateOrganizationIntelligenceConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateProjectIntelligenceConfigAsync(UpdateProjectIntelligenceConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateRapidCacheAsync(UpdateRapidCacheRequest $request, array $optionalArgs = []) + */ +final class StorageControlClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.storage.control.v2.StorageControl'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'storage.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'storage.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/cloud-platform.read-only', + 'https://www.googleapis.com/auth/devstorage.full_control', + 'https://www.googleapis.com/auth/devstorage.read_only', + 'https://www.googleapis.com/auth/devstorage.read_write', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/storage_control_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/storage_control_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/storage_control_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/storage_control_rest_client_config.php', + ], + ], + ]; + } + + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + */ + public function getOperationsClient() + { + return $this->operationsClient; + } + + /** + * Resume an existing long running operation that was previously started by a long + * running API method. If $methodName is not provided, or does not match a long + * running API method, then the operation can still be resumed, but the + * OperationResponse object will not deserialize the final response. + * + * @param string $operationName The name of the long running operation + * @param string $methodName The name of the method used to start the operation + * + * @return OperationResponse + */ + public function resumeOperation($operationName, $methodName = null) + { + $options = $this->descriptors[$methodName]['longRunning'] ?? []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Create the default operation client for the service. + * + * @param array $options ClientOptions for the client. + * + * @return OperationsClient + */ + private function createOperationsClient(array $options) + { + // Unset client-specific configuration options + unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); + + if (isset($options['operationsClient'])) { + return $options['operationsClient']; + } + + return new OperationsClient($options); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * anywhere_cache resource. + * + * @param string $project + * @param string $bucket + * @param string $anywhereCache + * + * @return string The formatted anywhere_cache resource. + */ + public static function anywhereCacheName(string $project, string $bucket, string $anywhereCache): string + { + return self::getPathTemplate('anywhereCache')->render([ + 'project' => $project, + 'bucket' => $bucket, + 'anywhere_cache' => $anywhereCache, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a bucket + * resource. + * + * @param string $project + * @param string $bucket + * + * @return string The formatted bucket resource. + */ + public static function bucketName(string $project, string $bucket): string + { + return self::getPathTemplate('bucket')->render([ + 'project' => $project, + 'bucket' => $bucket, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a folder + * resource. + * + * @param string $project + * @param string $bucket + * @param string $folder + * + * @return string The formatted folder resource. + */ + public static function folderName(string $project, string $bucket, string $folder): string + { + return self::getPathTemplate('folder')->render([ + 'project' => $project, + 'bucket' => $bucket, + 'folder' => $folder, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * folder_location_intelligenceConfig resource. + * + * @param string $folder + * @param string $location + * + * @return string The formatted folder_location_intelligenceConfig resource. + */ + public static function folderLocationIntelligenceConfigName(string $folder, string $location): string + { + return self::getPathTemplate('folderLocationIntelligenceConfig')->render([ + 'folder' => $folder, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * intelligence_config resource. + * + * @param string $folder + * @param string $location + * + * @return string The formatted intelligence_config resource. + */ + public static function intelligenceConfigName(string $folder, string $location): string + { + return self::getPathTemplate('intelligenceConfig')->render([ + 'folder' => $folder, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * intelligence_finding resource. + * + * @param string $project + * @param string $location + * @param string $intelligenceFinding + * + * @return string The formatted intelligence_finding resource. + */ + public static function intelligenceFindingName(string $project, string $location, string $intelligenceFinding): string + { + return self::getPathTemplate('intelligenceFinding')->render([ + 'project' => $project, + 'location' => $location, + 'intelligence_finding' => $intelligenceFinding, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * intelligence_finding_revision resource. + * + * @param string $project + * @param string $location + * @param string $intelligenceFinding + * @param string $revision + * + * @return string The formatted intelligence_finding_revision resource. + */ + public static function intelligenceFindingRevisionName(string $project, string $location, string $intelligenceFinding, string $revision): string + { + return self::getPathTemplate('intelligenceFindingRevision')->render([ + 'project' => $project, + 'location' => $location, + 'intelligence_finding' => $intelligenceFinding, + 'revision' => $revision, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * managed_folder resource. + * + * @param string $project + * @param string $bucket + * @param string $managedFolder + * + * @return string The formatted managed_folder resource. + */ + public static function managedFolderName(string $project, string $bucket, string $managedFolder): string + { + return self::getPathTemplate('managedFolder')->render([ + 'project' => $project, + 'bucket' => $bucket, + 'managed_folder' => $managedFolder, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * org_location_intelligenceConfig resource. + * + * @param string $org + * @param string $location + * + * @return string The formatted org_location_intelligenceConfig resource. + */ + public static function orgLocationIntelligenceConfigName(string $org, string $location): string + { + return self::getPathTemplate('orgLocationIntelligenceConfig')->render([ + 'org' => $org, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_intelligenceConfig resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted project_location_intelligenceConfig resource. + */ + public static function projectLocationIntelligenceConfigName(string $project, string $location): string + { + return self::getPathTemplate('projectLocationIntelligenceConfig')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a rapid_cache + * resource. + * + * @param string $project + * @param string $bucket + * @param string $rapidCache + * + * @return string The formatted rapid_cache resource. + */ + public static function rapidCacheName(string $project, string $bucket, string $rapidCache): string + { + return self::getPathTemplate('rapidCache')->render([ + 'project' => $project, + 'bucket' => $bucket, + 'rapid_cache' => $rapidCache, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * storage_layout resource. + * + * @param string $project + * @param string $bucket + * + * @return string The formatted storage_layout resource. + */ + public static function storageLayoutName(string $project, string $bucket): string + { + return self::getPathTemplate('storageLayout')->render([ + 'project' => $project, + 'bucket' => $bucket, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - anywhereCache: projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache} + * - bucket: projects/{project}/buckets/{bucket} + * - folder: projects/{project}/buckets/{bucket}/folders/{folder=**} + * - folderLocationIntelligenceConfig: folders/{folder}/locations/{location}/intelligenceConfig + * - intelligenceConfig: folders/{folder}/locations/{location}/intelligenceConfig + * - intelligenceFinding: projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding} + * - intelligenceFindingRevision: projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision} + * - location: projects/{project}/locations/{location} + * - managedFolder: projects/{project}/buckets/{bucket}/managedFolders/{managed_folder=**} + * - orgLocationIntelligenceConfig: organizations/{org}/locations/{location}/intelligenceConfig + * - projectLocationIntelligenceConfig: projects/{project}/locations/{location}/intelligenceConfig + * - rapidCache: projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache} + * - storageLayout: projects/{project}/buckets/{bucket}/storageLayout + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'storage.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Storage\Control\V2\StorageControlClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new StorageControlClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Creates an Anywhere Cache instance. + * + * The async variant is {@see StorageControlClient::createAnywhereCacheAsync()} . + * + * @example samples/V2/StorageControlClient/create_anywhere_cache.php + * + * @param CreateAnywhereCacheRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createAnywhereCache(CreateAnywhereCacheRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateAnywhereCache', $request, $callOptions)->wait(); + } + + /** + * Creates a new folder. This operation is only applicable to a hierarchical + * namespace enabled bucket. + * + * The async variant is {@see StorageControlClient::createFolderAsync()} . + * + * @example samples/V2/StorageControlClient/create_folder.php + * + * @param CreateFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Folder + * + * @throws ApiException Thrown if the API call fails. + */ + public function createFolder(CreateFolderRequest $request, array $callOptions = []): Folder + { + return $this->startApiCall('CreateFolder', $request, $callOptions)->wait(); + } + + /** + * Creates a new managed folder. + * + * The async variant is {@see StorageControlClient::createManagedFolderAsync()} . + * + * @example samples/V2/StorageControlClient/create_managed_folder.php + * + * @param CreateManagedFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ManagedFolder + * + * @throws ApiException Thrown if the API call fails. + */ + public function createManagedFolder(CreateManagedFolderRequest $request, array $callOptions = []): ManagedFolder + { + return $this->startApiCall('CreateManagedFolder', $request, $callOptions)->wait(); + } + + /** + * Creates a Rapid Cache instance. + * + * The async variant is {@see StorageControlClient::createRapidCacheAsync()} . + * + * @example samples/V2/StorageControlClient/create_rapid_cache.php + * + * @param CreateRapidCacheRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createRapidCache(CreateRapidCacheRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateRapidCache', $request, $callOptions)->wait(); + } + + /** + * Permanently deletes an empty folder. This operation is only applicable to a + * hierarchical namespace enabled bucket. + * + * The async variant is {@see StorageControlClient::deleteFolderAsync()} . + * + * @example samples/V2/StorageControlClient/delete_folder.php + * + * @param DeleteFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteFolder(DeleteFolderRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteFolder', $request, $callOptions)->wait(); + } + + /** + * Deletes a folder recursively. This operation is only applicable to a + * hierarchical namespace enabled bucket. + * + * The async variant is {@see StorageControlClient::deleteFolderRecursiveAsync()} . + * + * @example samples/V2/StorageControlClient/delete_folder_recursive.php + * + * @param DeleteFolderRecursiveRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteFolderRecursive(DeleteFolderRecursiveRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteFolderRecursive', $request, $callOptions)->wait(); + } + + /** + * Permanently deletes an empty managed folder. + * + * The async variant is {@see StorageControlClient::deleteManagedFolderAsync()} . + * + * @example samples/V2/StorageControlClient/delete_managed_folder.php + * + * @param DeleteManagedFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteManagedFolder(DeleteManagedFolderRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteManagedFolder', $request, $callOptions)->wait(); + } + + /** + * Disables an Anywhere Cache instance. A disabled instance is read-only. The + * disablement could be revoked by calling ResumeAnywhereCache. The cache + * instance will be deleted automatically if it remains in the disabled state + * for at least one hour. + * + * The async variant is {@see StorageControlClient::disableAnywhereCacheAsync()} . + * + * @example samples/V2/StorageControlClient/disable_anywhere_cache.php + * + * @param DisableAnywhereCacheRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return AnywhereCache + * + * @throws ApiException Thrown if the API call fails. + */ + public function disableAnywhereCache(DisableAnywhereCacheRequest $request, array $callOptions = []): AnywhereCache + { + return $this->startApiCall('DisableAnywhereCache', $request, $callOptions)->wait(); + } + + /** + * Gets an Anywhere Cache instance. + * + * The async variant is {@see StorageControlClient::getAnywhereCacheAsync()} . + * + * @example samples/V2/StorageControlClient/get_anywhere_cache.php + * + * @param GetAnywhereCacheRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return AnywhereCache + * + * @throws ApiException Thrown if the API call fails. + */ + public function getAnywhereCache(GetAnywhereCacheRequest $request, array $callOptions = []): AnywhereCache + { + return $this->startApiCall('GetAnywhereCache', $request, $callOptions)->wait(); + } + + /** + * Returns metadata for the specified folder. This operation is only + * applicable to a hierarchical namespace enabled bucket. + * + * The async variant is {@see StorageControlClient::getFolderAsync()} . + * + * @example samples/V2/StorageControlClient/get_folder.php + * + * @param GetFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Folder + * + * @throws ApiException Thrown if the API call fails. + */ + public function getFolder(GetFolderRequest $request, array $callOptions = []): Folder + { + return $this->startApiCall('GetFolder', $request, $callOptions)->wait(); + } + + /** + * Returns the Folder scoped singleton IntelligenceConfig resource. + * + * The async variant is + * {@see StorageControlClient::getFolderIntelligenceConfigAsync()} . + * + * @example samples/V2/StorageControlClient/get_folder_intelligence_config.php + * + * @param GetFolderIntelligenceConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return IntelligenceConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function getFolderIntelligenceConfig(GetFolderIntelligenceConfigRequest $request, array $callOptions = []): IntelligenceConfig + { + return $this->startApiCall('GetFolderIntelligenceConfig', $request, $callOptions)->wait(); + } + + /** + * Gets the IAM policy for a specified bucket. + * The `resource` field in the request should be + * `projects/_/buckets/{bucket}` for a bucket, or + * `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` + * for a managed folder. + * + * The async variant is {@see StorageControlClient::getIamPolicyAsync()} . + * + * @example samples/V2/StorageControlClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Gets the `IntelligenceFinding` for a project. + * + * The async variant is {@see StorageControlClient::getIntelligenceFindingAsync()} + * . + * + * @example samples/V2/StorageControlClient/get_intelligence_finding.php + * + * @param GetIntelligenceFindingRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return IntelligenceFinding + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIntelligenceFinding(GetIntelligenceFindingRequest $request, array $callOptions = []): IntelligenceFinding + { + return $this->startApiCall('GetIntelligenceFinding', $request, $callOptions)->wait(); + } + + /** + * Gets the `IntelligenceFindingRevision` resource. + * + * The async variant is + * {@see StorageControlClient::getIntelligenceFindingRevisionAsync()} . + * + * @example samples/V2/StorageControlClient/get_intelligence_finding_revision.php + * + * @param GetIntelligenceFindingRevisionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return IntelligenceFindingRevision + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIntelligenceFindingRevision(GetIntelligenceFindingRevisionRequest $request, array $callOptions = []): IntelligenceFindingRevision + { + return $this->startApiCall('GetIntelligenceFindingRevision', $request, $callOptions)->wait(); + } + + /** + * Returns metadata for the specified managed folder. + * + * The async variant is {@see StorageControlClient::getManagedFolderAsync()} . + * + * @example samples/V2/StorageControlClient/get_managed_folder.php + * + * @param GetManagedFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ManagedFolder + * + * @throws ApiException Thrown if the API call fails. + */ + public function getManagedFolder(GetManagedFolderRequest $request, array $callOptions = []): ManagedFolder + { + return $this->startApiCall('GetManagedFolder', $request, $callOptions)->wait(); + } + + /** + * Returns the Organization scoped singleton IntelligenceConfig resource. + * + * The async variant is + * {@see StorageControlClient::getOrganizationIntelligenceConfigAsync()} . + * + * @example samples/V2/StorageControlClient/get_organization_intelligence_config.php + * + * @param GetOrganizationIntelligenceConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return IntelligenceConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function getOrganizationIntelligenceConfig(GetOrganizationIntelligenceConfigRequest $request, array $callOptions = []): IntelligenceConfig + { + return $this->startApiCall('GetOrganizationIntelligenceConfig', $request, $callOptions)->wait(); + } + + /** + * Returns the Project scoped singleton IntelligenceConfig resource. + * + * The async variant is + * {@see StorageControlClient::getProjectIntelligenceConfigAsync()} . + * + * @example samples/V2/StorageControlClient/get_project_intelligence_config.php + * + * @param GetProjectIntelligenceConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return IntelligenceConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function getProjectIntelligenceConfig(GetProjectIntelligenceConfigRequest $request, array $callOptions = []): IntelligenceConfig + { + return $this->startApiCall('GetProjectIntelligenceConfig', $request, $callOptions)->wait(); + } + + /** + * Gets a Rapid Cache instance. + * + * The async variant is {@see StorageControlClient::getRapidCacheAsync()} . + * + * @example samples/V2/StorageControlClient/get_rapid_cache.php + * + * @param GetRapidCacheRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return RapidCache + * + * @throws ApiException Thrown if the API call fails. + */ + public function getRapidCache(GetRapidCacheRequest $request, array $callOptions = []): RapidCache + { + return $this->startApiCall('GetRapidCache', $request, $callOptions)->wait(); + } + + /** + * Returns the storage layout configuration for a given bucket. + * + * The async variant is {@see StorageControlClient::getStorageLayoutAsync()} . + * + * @example samples/V2/StorageControlClient/get_storage_layout.php + * + * @param GetStorageLayoutRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return StorageLayout + * + * @throws ApiException Thrown if the API call fails. + */ + public function getStorageLayout(GetStorageLayoutRequest $request, array $callOptions = []): StorageLayout + { + return $this->startApiCall('GetStorageLayout', $request, $callOptions)->wait(); + } + + /** + * Lists Anywhere Cache instances for a given bucket. + * + * The async variant is {@see StorageControlClient::listAnywhereCachesAsync()} . + * + * @example samples/V2/StorageControlClient/list_anywhere_caches.php + * + * @param ListAnywhereCachesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listAnywhereCaches(ListAnywhereCachesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAnywhereCaches', $request, $callOptions); + } + + /** + * Retrieves a list of folders. This operation is only applicable to a + * hierarchical namespace enabled bucket. + * + * The async variant is {@see StorageControlClient::listFoldersAsync()} . + * + * @example samples/V2/StorageControlClient/list_folders.php + * + * @param ListFoldersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listFolders(ListFoldersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListFolders', $request, $callOptions); + } + + /** + * Lists all the revisions of an `IntelligenceFinding` resource. + * + * The async variant is + * {@see StorageControlClient::listIntelligenceFindingRevisionsAsync()} . + * + * @example samples/V2/StorageControlClient/list_intelligence_finding_revisions.php + * + * @param ListIntelligenceFindingRevisionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listIntelligenceFindingRevisions(ListIntelligenceFindingRevisionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListIntelligenceFindingRevisions', $request, $callOptions); + } + + /** + * Lists the `IntelligenceFinding` resources for the specified the project. + * + * The async variant is + * {@see StorageControlClient::listIntelligenceFindingsAsync()} . + * + * @example samples/V2/StorageControlClient/list_intelligence_findings.php + * + * @param ListIntelligenceFindingsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listIntelligenceFindings(ListIntelligenceFindingsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListIntelligenceFindings', $request, $callOptions); + } + + /** + * Retrieves a list of managed folders for a given bucket. + * + * The async variant is {@see StorageControlClient::listManagedFoldersAsync()} . + * + * @example samples/V2/StorageControlClient/list_managed_folders.php + * + * @param ListManagedFoldersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listManagedFolders(ListManagedFoldersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListManagedFolders', $request, $callOptions); + } + + /** + * Lists Rapid Cache instances for a given bucket. + * + * The async variant is {@see StorageControlClient::listRapidCachesAsync()} . + * + * @example samples/V2/StorageControlClient/list_rapid_caches.php + * + * @param ListRapidCachesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listRapidCaches(ListRapidCachesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListRapidCaches', $request, $callOptions); + } + + /** + * Pauses an Anywhere Cache instance. + * + * The async variant is {@see StorageControlClient::pauseAnywhereCacheAsync()} . + * + * @example samples/V2/StorageControlClient/pause_anywhere_cache.php + * + * @param PauseAnywhereCacheRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return AnywhereCache + * + * @throws ApiException Thrown if the API call fails. + */ + public function pauseAnywhereCache(PauseAnywhereCacheRequest $request, array $callOptions = []): AnywhereCache + { + return $this->startApiCall('PauseAnywhereCache', $request, $callOptions)->wait(); + } + + /** + * Renames a source folder to a destination folder. This operation is only + * applicable to a hierarchical namespace enabled bucket. During a rename, the + * source and destination folders are locked until the long running operation + * completes. + * + * The async variant is {@see StorageControlClient::renameFolderAsync()} . + * + * @example samples/V2/StorageControlClient/rename_folder.php + * + * @param RenameFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function renameFolder(RenameFolderRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('RenameFolder', $request, $callOptions)->wait(); + } + + /** + * Resumes a disabled or paused Anywhere Cache instance. + * + * The async variant is {@see StorageControlClient::resumeAnywhereCacheAsync()} . + * + * @example samples/V2/StorageControlClient/resume_anywhere_cache.php + * + * @param ResumeAnywhereCacheRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return AnywhereCache + * + * @throws ApiException Thrown if the API call fails. + */ + public function resumeAnywhereCache(ResumeAnywhereCacheRequest $request, array $callOptions = []): AnywhereCache + { + return $this->startApiCall('ResumeAnywhereCache', $request, $callOptions)->wait(); + } + + /** + * Updates an IAM policy for the specified bucket. + * The `resource` field in the request should be + * `projects/_/buckets/{bucket}` for a bucket, or + * `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` + * for a managed folder. + * + * The async variant is {@see StorageControlClient::setIamPolicyAsync()} . + * + * @example samples/V2/StorageControlClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Summarizes the intelligence findings for the specified scope (organization, + * folder or project). + * + * The async variant is + * {@see StorageControlClient::summarizeIntelligenceFindingsAsync()} . + * + * @example samples/V2/StorageControlClient/summarize_intelligence_findings.php + * + * @param SummarizeIntelligenceFindingsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function summarizeIntelligenceFindings(SummarizeIntelligenceFindingsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('SummarizeIntelligenceFindings', $request, $callOptions); + } + + /** + * Tests a set of permissions on the given bucket, object, or managed folder + * to see which, if any, are held by the caller. + * The `resource` field in the request should be + * `projects/_/buckets/{bucket}` for a bucket, + * `projects/_/buckets/{bucket}/objects/{object}` for an object, or + * `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` + * for a managed folder. + * + * The async variant is {@see StorageControlClient::testIamPermissionsAsync()} . + * + * @example samples/V2/StorageControlClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse + { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } + + /** + * Updates an Anywhere Cache instance. Mutable fields include `ttl` and + * `admission_policy`. + * + * The async variant is {@see StorageControlClient::updateAnywhereCacheAsync()} . + * + * @example samples/V2/StorageControlClient/update_anywhere_cache.php + * + * @param UpdateAnywhereCacheRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateAnywhereCache(UpdateAnywhereCacheRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateAnywhereCache', $request, $callOptions)->wait(); + } + + /** + * Updates the Folder scoped singleton IntelligenceConfig resource. + * + * The async variant is + * {@see StorageControlClient::updateFolderIntelligenceConfigAsync()} . + * + * @example samples/V2/StorageControlClient/update_folder_intelligence_config.php + * + * @param UpdateFolderIntelligenceConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return IntelligenceConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateFolderIntelligenceConfig(UpdateFolderIntelligenceConfigRequest $request, array $callOptions = []): IntelligenceConfig + { + return $this->startApiCall('UpdateFolderIntelligenceConfig', $request, $callOptions)->wait(); + } + + /** + * Updates a managed folder. Currently, this RPC only supports updating the + * `rapid_cache_config` field. + * + * The async variant is {@see StorageControlClient::updateManagedFolderAsync()} . + * + * @example samples/V2/StorageControlClient/update_managed_folder.php + * + * @param UpdateManagedFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ManagedFolder + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateManagedFolder(UpdateManagedFolderRequest $request, array $callOptions = []): ManagedFolder + { + return $this->startApiCall('UpdateManagedFolder', $request, $callOptions)->wait(); + } + + /** + * Updates the Organization scoped singleton IntelligenceConfig resource. + * + * The async variant is + * {@see StorageControlClient::updateOrganizationIntelligenceConfigAsync()} . + * + * @example samples/V2/StorageControlClient/update_organization_intelligence_config.php + * + * @param UpdateOrganizationIntelligenceConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return IntelligenceConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateOrganizationIntelligenceConfig(UpdateOrganizationIntelligenceConfigRequest $request, array $callOptions = []): IntelligenceConfig + { + return $this->startApiCall('UpdateOrganizationIntelligenceConfig', $request, $callOptions)->wait(); + } + + /** + * Updates the Project scoped singleton IntelligenceConfig resource. + * + * The async variant is + * {@see StorageControlClient::updateProjectIntelligenceConfigAsync()} . + * + * @example samples/V2/StorageControlClient/update_project_intelligence_config.php + * + * @param UpdateProjectIntelligenceConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return IntelligenceConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateProjectIntelligenceConfig(UpdateProjectIntelligenceConfigRequest $request, array $callOptions = []): IntelligenceConfig + { + return $this->startApiCall('UpdateProjectIntelligenceConfig', $request, $callOptions)->wait(); + } + + /** + * Updates a Rapid Cache instance. + * + * The async variant is {@see StorageControlClient::updateRapidCacheAsync()} . + * + * @example samples/V2/StorageControlClient/update_rapid_cache.php + * + * @param UpdateRapidCacheRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateRapidCache(UpdateRapidCacheRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateRapidCache', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/StorageControl/v2/src/V2/gapic_metadata.json b/owl-bot-staging/StorageControl/v2/src/V2/gapic_metadata.json new file mode 100644 index 000000000000..e8d2e7d2683a --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/src/V2/gapic_metadata.json @@ -0,0 +1,203 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.storage.control.v2", + "libraryPackage": "Google\\Cloud\\Storage\\Control\\V2", + "services": { + "StorageControl": { + "clients": { + "grpc": { + "libraryClient": "StorageControlGapicClient", + "rpcs": { + "CreateAnywhereCache": { + "methods": [ + "createAnywhereCache" + ] + }, + "CreateFolder": { + "methods": [ + "createFolder" + ] + }, + "CreateManagedFolder": { + "methods": [ + "createManagedFolder" + ] + }, + "CreateRapidCache": { + "methods": [ + "createRapidCache" + ] + }, + "DeleteFolder": { + "methods": [ + "deleteFolder" + ] + }, + "DeleteFolderRecursive": { + "methods": [ + "deleteFolderRecursive" + ] + }, + "DeleteManagedFolder": { + "methods": [ + "deleteManagedFolder" + ] + }, + "DisableAnywhereCache": { + "methods": [ + "disableAnywhereCache" + ] + }, + "GetAnywhereCache": { + "methods": [ + "getAnywhereCache" + ] + }, + "GetFolder": { + "methods": [ + "getFolder" + ] + }, + "GetFolderIntelligenceConfig": { + "methods": [ + "getFolderIntelligenceConfig" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "GetIntelligenceFinding": { + "methods": [ + "getIntelligenceFinding" + ] + }, + "GetIntelligenceFindingRevision": { + "methods": [ + "getIntelligenceFindingRevision" + ] + }, + "GetManagedFolder": { + "methods": [ + "getManagedFolder" + ] + }, + "GetOrganizationIntelligenceConfig": { + "methods": [ + "getOrganizationIntelligenceConfig" + ] + }, + "GetProjectIntelligenceConfig": { + "methods": [ + "getProjectIntelligenceConfig" + ] + }, + "GetRapidCache": { + "methods": [ + "getRapidCache" + ] + }, + "GetStorageLayout": { + "methods": [ + "getStorageLayout" + ] + }, + "ListAnywhereCaches": { + "methods": [ + "listAnywhereCaches" + ] + }, + "ListFolders": { + "methods": [ + "listFolders" + ] + }, + "ListIntelligenceFindingRevisions": { + "methods": [ + "listIntelligenceFindingRevisions" + ] + }, + "ListIntelligenceFindings": { + "methods": [ + "listIntelligenceFindings" + ] + }, + "ListManagedFolders": { + "methods": [ + "listManagedFolders" + ] + }, + "ListRapidCaches": { + "methods": [ + "listRapidCaches" + ] + }, + "PauseAnywhereCache": { + "methods": [ + "pauseAnywhereCache" + ] + }, + "RenameFolder": { + "methods": [ + "renameFolder" + ] + }, + "ResumeAnywhereCache": { + "methods": [ + "resumeAnywhereCache" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "SummarizeIntelligenceFindings": { + "methods": [ + "summarizeIntelligenceFindings" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "UpdateAnywhereCache": { + "methods": [ + "updateAnywhereCache" + ] + }, + "UpdateFolderIntelligenceConfig": { + "methods": [ + "updateFolderIntelligenceConfig" + ] + }, + "UpdateManagedFolder": { + "methods": [ + "updateManagedFolder" + ] + }, + "UpdateOrganizationIntelligenceConfig": { + "methods": [ + "updateOrganizationIntelligenceConfig" + ] + }, + "UpdateProjectIntelligenceConfig": { + "methods": [ + "updateProjectIntelligenceConfig" + ] + }, + "UpdateRapidCache": { + "methods": [ + "updateRapidCache" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_client_config.json b/owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_client_config.json new file mode 100644 index 000000000000..147c29076b2c --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_client_config.json @@ -0,0 +1,232 @@ +{ + "interfaces": { + "google.storage.control.v2.StorageControl": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "RESOURCE_EXHAUSTED", + "UNAVAILABLE", + "INTERNAL", + "UNKNOWN" + ], + "no_retry_1_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 2.0, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "no_retry_1_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "CreateAnywhereCache": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateFolder": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateManagedFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateRapidCache": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteFolderRecursive": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteManagedFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DisableAnywhereCache": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAnywhereCache": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetFolder": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetFolderIntelligenceConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetIntelligenceFinding": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetIntelligenceFindingRevision": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetManagedFolder": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetOrganizationIntelligenceConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetProjectIntelligenceConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetRapidCache": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetStorageLayout": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAnywhereCaches": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListFolders": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListIntelligenceFindingRevisions": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListIntelligenceFindings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListManagedFolders": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListRapidCaches": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "PauseAnywhereCache": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "RenameFolder": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ResumeAnywhereCache": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SummarizeIntelligenceFindings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateAnywhereCache": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateFolderIntelligenceConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateManagedFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateOrganizationIntelligenceConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateProjectIntelligenceConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateRapidCache": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_descriptor_config.php b/owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_descriptor_config.php new file mode 100644 index 000000000000..a0f2bf3d1cd7 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_descriptor_config.php @@ -0,0 +1,697 @@ + [ + 'google.storage.control.v2.StorageControl' => [ + 'CreateAnywhereCache' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Storage\Control\V2\AnywhereCache', + 'metadataReturnType' => '\Google\Cloud\Storage\Control\V2\CreateAnywhereCacheMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + 'autoPopulatedFields' => [ + 'requestId' => \Google\Api\FieldInfo\Format::UUID4, + ], + ], + 'CreateRapidCache' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Storage\Control\V2\RapidCache', + 'metadataReturnType' => '\Google\Cloud\Storage\Control\V2\CreateRapidCacheMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteFolderRecursive' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Storage\Control\V2\DeleteFolderRecursiveMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + 'autoPopulatedFields' => [ + 'requestId' => \Google\Api\FieldInfo\Format::UUID4, + ], + ], + 'RenameFolder' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Storage\Control\V2\Folder', + 'metadataReturnType' => '\Google\Cloud\Storage\Control\V2\RenameFolderMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + 'autoPopulatedFields' => [ + 'requestId' => \Google\Api\FieldInfo\Format::UUID4, + ], + ], + 'UpdateAnywhereCache' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Storage\Control\V2\AnywhereCache', + 'metadataReturnType' => '\Google\Cloud\Storage\Control\V2\UpdateAnywhereCacheMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getAnywhereCache', + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + 'autoPopulatedFields' => [ + 'requestId' => \Google\Api\FieldInfo\Format::UUID4, + ], + ], + 'UpdateRapidCache' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Storage\Control\V2\RapidCache', + 'metadataReturnType' => '\Google\Cloud\Storage\Control\V2\UpdateRapidCacheMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getRapidCache', + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + ], + 'CreateFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\Folder', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + 'autoPopulatedFields' => [ + 'requestId' => \Google\Api\FieldInfo\Format::UUID4, + ], + ], + 'CreateManagedFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\ManagedFolder', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + 'autoPopulatedFields' => [ + 'requestId' => \Google\Api\FieldInfo\Format::UUID4, + ], + ], + 'DeleteFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + 'autoPopulatedFields' => [ + 'requestId' => \Google\Api\FieldInfo\Format::UUID4, + ], + ], + 'DeleteManagedFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + 'autoPopulatedFields' => [ + 'requestId' => \Google\Api\FieldInfo\Format::UUID4, + ], + ], + 'DisableAnywhereCache' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\AnywhereCache', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + 'autoPopulatedFields' => [ + 'requestId' => \Google\Api\FieldInfo\Format::UUID4, + ], + ], + 'GetAnywhereCache' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\AnywhereCache', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + 'autoPopulatedFields' => [ + 'requestId' => \Google\Api\FieldInfo\Format::UUID4, + ], + ], + 'GetFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\Folder', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + 'autoPopulatedFields' => [ + 'requestId' => \Google\Api\FieldInfo\Format::UUID4, + ], + ], + 'GetFolderIntelligenceConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\IntelligenceConfig', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getResource', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + ], + 'GetIntelligenceFinding' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\IntelligenceFinding', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetIntelligenceFindingRevision' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\IntelligenceFindingRevision', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetManagedFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\ManagedFolder', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + 'autoPopulatedFields' => [ + 'requestId' => \Google\Api\FieldInfo\Format::UUID4, + ], + ], + 'GetOrganizationIntelligenceConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\IntelligenceConfig', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetProjectIntelligenceConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\IntelligenceConfig', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetRapidCache' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\RapidCache', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + ], + 'GetStorageLayout' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\StorageLayout', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + 'autoPopulatedFields' => [ + 'requestId' => \Google\Api\FieldInfo\Format::UUID4, + ], + ], + 'ListAnywhereCaches' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAnywhereCaches', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\ListAnywhereCachesResponse', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + 'autoPopulatedFields' => [ + 'requestId' => \Google\Api\FieldInfo\Format::UUID4, + ], + ], + 'ListFolders' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getFolders', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\ListFoldersResponse', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListIntelligenceFindingRevisions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getIntelligenceFindingRevisions', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\ListIntelligenceFindingRevisionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListIntelligenceFindings' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getIntelligenceFindings', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\ListIntelligenceFindingsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListManagedFolders' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getManagedFolders', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\ListManagedFoldersResponse', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + 'autoPopulatedFields' => [ + 'requestId' => \Google\Api\FieldInfo\Format::UUID4, + ], + ], + 'ListRapidCaches' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRapidCaches', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\ListRapidCachesResponse', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'PauseAnywhereCache' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\AnywhereCache', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + 'autoPopulatedFields' => [ + 'requestId' => \Google\Api\FieldInfo\Format::UUID4, + ], + ], + 'ResumeAnywhereCache' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\AnywhereCache', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + 'autoPopulatedFields' => [ + 'requestId' => \Google\Api\FieldInfo\Format::UUID4, + ], + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getResource', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + ], + 'SummarizeIntelligenceFindings' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getFindingSummaries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\SummarizeIntelligenceFindingsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getResource', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)\/objects(?:\/.*)?$/', + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)\/managedFolders(?:\/.*)?$/', + ], + ], + ], + ], + 'UpdateFolderIntelligenceConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\IntelligenceConfig', + 'headerParams' => [ + [ + 'keyName' => 'intelligence_config.name', + 'fieldAccessors' => [ + 'getIntelligenceConfig', + 'getName', + ], + ], + ], + ], + 'UpdateManagedFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\ManagedFolder', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getManagedFolder', + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + ], + 'UpdateOrganizationIntelligenceConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\IntelligenceConfig', + 'headerParams' => [ + [ + 'keyName' => 'intelligence_config.name', + 'fieldAccessors' => [ + 'getIntelligenceConfig', + 'getName', + ], + ], + ], + ], + 'UpdateProjectIntelligenceConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\IntelligenceConfig', + 'headerParams' => [ + [ + 'keyName' => 'intelligence_config.name', + 'fieldAccessors' => [ + 'getIntelligenceConfig', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'anywhereCache' => 'projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}', + 'bucket' => 'projects/{project}/buckets/{bucket}', + 'folder' => 'projects/{project}/buckets/{bucket}/folders/{folder=**}', + 'folderLocationIntelligenceConfig' => 'folders/{folder}/locations/{location}/intelligenceConfig', + 'intelligenceConfig' => 'folders/{folder}/locations/{location}/intelligenceConfig', + 'intelligenceFinding' => 'projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}', + 'intelligenceFindingRevision' => 'projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}', + 'location' => 'projects/{project}/locations/{location}', + 'managedFolder' => 'projects/{project}/buckets/{bucket}/managedFolders/{managed_folder=**}', + 'orgLocationIntelligenceConfig' => 'organizations/{org}/locations/{location}/intelligenceConfig', + 'projectLocationIntelligenceConfig' => 'projects/{project}/locations/{location}/intelligenceConfig', + 'rapidCache' => 'projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}', + 'storageLayout' => 'projects/{project}/buckets/{bucket}/storageLayout', + ], + ], + ], +]; diff --git a/owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_rest_client_config.php b/owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_rest_client_config.php new file mode 100644 index 000000000000..179486e0ae50 --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_rest_client_config.php @@ -0,0 +1,257 @@ + [ + 'google.storage.control.v2.StorageControl' => [ + 'CreateFolder' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/buckets/*}/folders', + 'body' => 'folder', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'folder_id', + ], + ], + 'DeleteFolder' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/buckets/*/folders/**}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteFolderRecursive' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/buckets/*/folders/**}:deleteRecursive', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetFolder' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/buckets/*/folders/**}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetFolderIntelligenceConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=folders/*/locations/*/intelligenceConfig}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetIntelligenceFinding' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/intelligenceFindings/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetIntelligenceFindingRevision' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/intelligenceFindings/*/revisions/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOrganizationIntelligenceConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/intelligenceConfig}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetProjectIntelligenceConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/intelligenceConfig}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetStorageLayout' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/buckets/*/storageLayout}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListFolders' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/buckets/*}/folders', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListIntelligenceFindingRevisions' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*/intelligenceFindings/*}/revisions', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListIntelligenceFindings' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/intelligenceFindings', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'RenameFolder' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/buckets/*/folders/**}:rename', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'SummarizeIntelligenceFindings' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/intelligenceFindings:summarize', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=folders/*/locations/*}/intelligenceFindings:summarize', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/intelligenceFindings:summarize', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateFolderIntelligenceConfig' => [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{intelligence_config.name=folders/*/locations/*/intelligenceConfig}', + 'body' => 'intelligence_config', + 'placeholders' => [ + 'intelligence_config.name' => [ + 'getters' => [ + 'getIntelligenceConfig', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateOrganizationIntelligenceConfig' => [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{intelligence_config.name=organizations/*/locations/*/intelligenceConfig}', + 'body' => 'intelligence_config', + 'placeholders' => [ + 'intelligence_config.name' => [ + 'getters' => [ + 'getIntelligenceConfig', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateProjectIntelligenceConfig' => [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{intelligence_config.name=projects/*/locations/*/intelligenceConfig}', + 'body' => 'intelligence_config', + 'placeholders' => [ + 'intelligence_config.name' => [ + 'getters' => [ + 'getIntelligenceConfig', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/StorageControl/v2/tests/Unit/V2/Client/StorageControlClientTest.php b/owl-bot-staging/StorageControl/v2/tests/Unit/V2/Client/StorageControlClientTest.php new file mode 100644 index 000000000000..a9e2b387abbf --- /dev/null +++ b/owl-bot-staging/StorageControl/v2/tests/Unit/V2/Client/StorageControlClientTest.php @@ -0,0 +1,3167 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return StorageControlClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new StorageControlClient($options); + } + + /** @test */ + public function createAnywhereCacheTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createAnywhereCacheTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $zone = 'zone3744684'; + $admissionPolicy = 'admissionPolicy1847270952'; + $state = 'state109757585'; + $pendingUpdate = false; + $ingestOnWrite = true; + $expectedResponse = new AnywhereCache(); + $expectedResponse->setName($name); + $expectedResponse->setZone($zone); + $expectedResponse->setAdmissionPolicy($admissionPolicy); + $expectedResponse->setState($state); + $expectedResponse->setPendingUpdate($pendingUpdate); + $expectedResponse->setIngestOnWrite($ingestOnWrite); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAnywhereCacheTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $anywhereCache = new AnywhereCache(); + $request = (new CreateAnywhereCacheRequest()) + ->setParent($formattedParent) + ->setAnywhereCache($anywhereCache); + $response = $gapicClient->createAnywhereCache($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/CreateAnywhereCache', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAnywhereCache(); + $this->assertProtobufEquals($anywhereCache, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAnywhereCacheTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createAnywhereCacheExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createAnywhereCacheTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $anywhereCache = new AnywhereCache(); + $request = (new CreateAnywhereCacheRequest()) + ->setParent($formattedParent) + ->setAnywhereCache($anywhereCache); + $response = $gapicClient->createAnywhereCache($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAnywhereCacheTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $metageneration = 1048558813; + $expectedResponse = new Folder(); + $expectedResponse->setName($name); + $expectedResponse->setMetageneration($metageneration); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $folder = new Folder(); + $folderId = 'folderId527488652'; + $request = (new CreateFolderRequest()) + ->setParent($formattedParent) + ->setFolder($folder) + ->setFolderId($folderId); + $response = $gapicClient->createFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/CreateFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getFolder(); + $this->assertProtobufEquals($folder, $actualValue); + $actualValue = $actualRequestObject->getFolderId(); + $this->assertProtobufEquals($folderId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $folder = new Folder(); + $folderId = 'folderId527488652'; + $request = (new CreateFolderRequest()) + ->setParent($formattedParent) + ->setFolder($folder) + ->setFolderId($folderId); + try { + $gapicClient->createFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createManagedFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $metageneration = 1048558813; + $expectedResponse = new ManagedFolder(); + $expectedResponse->setName($name); + $expectedResponse->setMetageneration($metageneration); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $managedFolder = new ManagedFolder(); + $managedFolderId = 'managedFolderId-239131156'; + $request = (new CreateManagedFolderRequest()) + ->setParent($formattedParent) + ->setManagedFolder($managedFolder) + ->setManagedFolderId($managedFolderId); + $response = $gapicClient->createManagedFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/CreateManagedFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getManagedFolder(); + $this->assertProtobufEquals($managedFolder, $actualValue); + $actualValue = $actualRequestObject->getManagedFolderId(); + $this->assertProtobufEquals($managedFolderId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createManagedFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $managedFolder = new ManagedFolder(); + $managedFolderId = 'managedFolderId-239131156'; + $request = (new CreateManagedFolderRequest()) + ->setParent($formattedParent) + ->setManagedFolder($managedFolder) + ->setManagedFolderId($managedFolderId); + try { + $gapicClient->createManagedFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRapidCacheTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createRapidCacheTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $zone = 'zone3744684'; + $cacheType = 'cacheType29096407'; + $admissionPolicy = 'admissionPolicy1847270952'; + $state = 'state109757585'; + $pendingUpdate = false; + $expectedResponse = new RapidCache(); + $expectedResponse->setName($name); + $expectedResponse->setZone($zone); + $expectedResponse->setCacheType($cacheType); + $expectedResponse->setAdmissionPolicy($admissionPolicy); + $expectedResponse->setState($state); + $expectedResponse->setPendingUpdate($pendingUpdate); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createRapidCacheTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $rapidCache = new RapidCache(); + $request = (new CreateRapidCacheRequest()) + ->setParent($formattedParent) + ->setRapidCache($rapidCache); + $response = $gapicClient->createRapidCache($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/CreateRapidCache', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getRapidCache(); + $this->assertProtobufEquals($rapidCache, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createRapidCacheTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createRapidCacheExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createRapidCacheTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $rapidCache = new RapidCache(); + $request = (new CreateRapidCacheRequest()) + ->setParent($formattedParent) + ->setRapidCache($rapidCache); + $response = $gapicClient->createRapidCache($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createRapidCacheTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); + $request = (new DeleteFolderRequest()) + ->setName($formattedName); + $gapicClient->deleteFolder($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/DeleteFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); + $request = (new DeleteFolderRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteFolderRecursiveTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteFolderRecursiveTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteFolderRecursiveTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); + $request = (new DeleteFolderRecursiveRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteFolderRecursive($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/DeleteFolderRecursive', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteFolderRecursiveTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteFolderRecursiveExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteFolderRecursiveTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); + $request = (new DeleteFolderRecursiveRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteFolderRecursive($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteFolderRecursiveTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteManagedFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->managedFolderName('[PROJECT]', '[BUCKET]', '[MANAGED_FOLDER]'); + $request = (new DeleteManagedFolderRequest()) + ->setName($formattedName); + $gapicClient->deleteManagedFolder($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/DeleteManagedFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteManagedFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->managedFolderName('[PROJECT]', '[BUCKET]', '[MANAGED_FOLDER]'); + $request = (new DeleteManagedFolderRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteManagedFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function disableAnywhereCacheTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone = 'zone3744684'; + $admissionPolicy = 'admissionPolicy1847270952'; + $state = 'state109757585'; + $pendingUpdate = false; + $ingestOnWrite = true; + $expectedResponse = new AnywhereCache(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone); + $expectedResponse->setAdmissionPolicy($admissionPolicy); + $expectedResponse->setState($state); + $expectedResponse->setPendingUpdate($pendingUpdate); + $expectedResponse->setIngestOnWrite($ingestOnWrite); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); + $request = (new DisableAnywhereCacheRequest()) + ->setName($formattedName); + $response = $gapicClient->disableAnywhereCache($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/DisableAnywhereCache', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function disableAnywhereCacheExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); + $request = (new DisableAnywhereCacheRequest()) + ->setName($formattedName); + try { + $gapicClient->disableAnywhereCache($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAnywhereCacheTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone = 'zone3744684'; + $admissionPolicy = 'admissionPolicy1847270952'; + $state = 'state109757585'; + $pendingUpdate = false; + $ingestOnWrite = true; + $expectedResponse = new AnywhereCache(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone); + $expectedResponse->setAdmissionPolicy($admissionPolicy); + $expectedResponse->setState($state); + $expectedResponse->setPendingUpdate($pendingUpdate); + $expectedResponse->setIngestOnWrite($ingestOnWrite); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); + $request = (new GetAnywhereCacheRequest()) + ->setName($formattedName); + $response = $gapicClient->getAnywhereCache($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/GetAnywhereCache', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAnywhereCacheExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); + $request = (new GetAnywhereCacheRequest()) + ->setName($formattedName); + try { + $gapicClient->getAnywhereCache($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $metageneration = 1048558813; + $expectedResponse = new Folder(); + $expectedResponse->setName($name2); + $expectedResponse->setMetageneration($metageneration); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); + $request = (new GetFolderRequest()) + ->setName($formattedName); + $response = $gapicClient->getFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/GetFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); + $request = (new GetFolderRequest()) + ->setName($formattedName); + try { + $gapicClient->getFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFolderIntelligenceConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new IntelligenceConfig(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->intelligenceConfigName('[FOLDER]', '[LOCATION]'); + $request = (new GetFolderIntelligenceConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->getFolderIntelligenceConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/GetFolderIntelligenceConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFolderIntelligenceConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->intelligenceConfigName('[FOLDER]', '[LOCATION]'); + $request = (new GetFolderIntelligenceConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->getFolderIntelligenceConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIntelligenceFindingTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $targetResource = 'targetResource-69552388'; + $expectedResponse = new IntelligenceFinding(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setTargetResource($targetResource); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->intelligenceFindingName('[PROJECT]', '[LOCATION]', '[INTELLIGENCE_FINDING]'); + $request = (new GetIntelligenceFindingRequest()) + ->setName($formattedName); + $response = $gapicClient->getIntelligenceFinding($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/GetIntelligenceFinding', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIntelligenceFindingExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->intelligenceFindingName('[PROJECT]', '[LOCATION]', '[INTELLIGENCE_FINDING]'); + $request = (new GetIntelligenceFindingRequest()) + ->setName($formattedName); + try { + $gapicClient->getIntelligenceFinding($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIntelligenceFindingRevisionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new IntelligenceFindingRevision(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->intelligenceFindingRevisionName('[PROJECT]', '[LOCATION]', '[INTELLIGENCE_FINDING]', '[REVISION]'); + $request = (new GetIntelligenceFindingRevisionRequest()) + ->setName($formattedName); + $response = $gapicClient->getIntelligenceFindingRevision($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/GetIntelligenceFindingRevision', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIntelligenceFindingRevisionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->intelligenceFindingRevisionName('[PROJECT]', '[LOCATION]', '[INTELLIGENCE_FINDING]', '[REVISION]'); + $request = (new GetIntelligenceFindingRevisionRequest()) + ->setName($formattedName); + try { + $gapicClient->getIntelligenceFindingRevision($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getManagedFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $metageneration = 1048558813; + $expectedResponse = new ManagedFolder(); + $expectedResponse->setName($name2); + $expectedResponse->setMetageneration($metageneration); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->managedFolderName('[PROJECT]', '[BUCKET]', '[MANAGED_FOLDER]'); + $request = (new GetManagedFolderRequest()) + ->setName($formattedName); + $response = $gapicClient->getManagedFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/GetManagedFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getManagedFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->managedFolderName('[PROJECT]', '[BUCKET]', '[MANAGED_FOLDER]'); + $request = (new GetManagedFolderRequest()) + ->setName($formattedName); + try { + $gapicClient->getManagedFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOrganizationIntelligenceConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new IntelligenceConfig(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->intelligenceConfigName('[FOLDER]', '[LOCATION]'); + $request = (new GetOrganizationIntelligenceConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->getOrganizationIntelligenceConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/GetOrganizationIntelligenceConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOrganizationIntelligenceConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->intelligenceConfigName('[FOLDER]', '[LOCATION]'); + $request = (new GetOrganizationIntelligenceConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->getOrganizationIntelligenceConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getProjectIntelligenceConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new IntelligenceConfig(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->intelligenceConfigName('[FOLDER]', '[LOCATION]'); + $request = (new GetProjectIntelligenceConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->getProjectIntelligenceConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/GetProjectIntelligenceConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getProjectIntelligenceConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->intelligenceConfigName('[FOLDER]', '[LOCATION]'); + $request = (new GetProjectIntelligenceConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->getProjectIntelligenceConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRapidCacheTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone = 'zone3744684'; + $cacheType = 'cacheType29096407'; + $admissionPolicy = 'admissionPolicy1847270952'; + $state = 'state109757585'; + $pendingUpdate = false; + $expectedResponse = new RapidCache(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone); + $expectedResponse->setCacheType($cacheType); + $expectedResponse->setAdmissionPolicy($admissionPolicy); + $expectedResponse->setState($state); + $expectedResponse->setPendingUpdate($pendingUpdate); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->rapidCacheName('[PROJECT]', '[BUCKET]', '[RAPID_CACHE]'); + $request = (new GetRapidCacheRequest()) + ->setName($formattedName); + $response = $gapicClient->getRapidCache($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/GetRapidCache', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRapidCacheExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->rapidCacheName('[PROJECT]', '[BUCKET]', '[RAPID_CACHE]'); + $request = (new GetRapidCacheRequest()) + ->setName($formattedName); + try { + $gapicClient->getRapidCache($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getStorageLayoutTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $location = 'location1901043637'; + $locationType = 'locationType-1796591228'; + $expectedResponse = new StorageLayout(); + $expectedResponse->setName($name2); + $expectedResponse->setLocation($location); + $expectedResponse->setLocationType($locationType); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->storageLayoutName('[PROJECT]', '[BUCKET]'); + $request = (new GetStorageLayoutRequest()) + ->setName($formattedName); + $response = $gapicClient->getStorageLayout($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/GetStorageLayout', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getStorageLayoutExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->storageLayoutName('[PROJECT]', '[BUCKET]'); + $request = (new GetStorageLayoutRequest()) + ->setName($formattedName); + try { + $gapicClient->getStorageLayout($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAnywhereCachesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $anywhereCachesElement = new AnywhereCache(); + $anywhereCaches = [ + $anywhereCachesElement, + ]; + $expectedResponse = new ListAnywhereCachesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAnywhereCaches($anywhereCaches); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $request = (new ListAnywhereCachesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAnywhereCaches($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAnywhereCaches()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/ListAnywhereCaches', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAnywhereCachesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $request = (new ListAnywhereCachesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAnywhereCaches($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFoldersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $foldersElement = new Folder(); + $folders = [ + $foldersElement, + ]; + $expectedResponse = new ListFoldersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setFolders($folders); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $request = (new ListFoldersRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listFolders($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getFolders()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/ListFolders', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFoldersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $request = (new ListFoldersRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listFolders($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listIntelligenceFindingRevisionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $intelligenceFindingRevisionsElement = new IntelligenceFindingRevision(); + $intelligenceFindingRevisions = [ + $intelligenceFindingRevisionsElement, + ]; + $expectedResponse = new ListIntelligenceFindingRevisionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setIntelligenceFindingRevisions($intelligenceFindingRevisions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->intelligenceFindingName('[PROJECT]', '[LOCATION]', '[INTELLIGENCE_FINDING]'); + $request = (new ListIntelligenceFindingRevisionsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listIntelligenceFindingRevisions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getIntelligenceFindingRevisions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/ListIntelligenceFindingRevisions', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listIntelligenceFindingRevisionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->intelligenceFindingName('[PROJECT]', '[LOCATION]', '[INTELLIGENCE_FINDING]'); + $request = (new ListIntelligenceFindingRevisionsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listIntelligenceFindingRevisions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listIntelligenceFindingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $intelligenceFindingsElement = new IntelligenceFinding(); + $intelligenceFindings = [ + $intelligenceFindingsElement, + ]; + $expectedResponse = new ListIntelligenceFindingsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setIntelligenceFindings($intelligenceFindings); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListIntelligenceFindingsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listIntelligenceFindings($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getIntelligenceFindings()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/ListIntelligenceFindings', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listIntelligenceFindingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListIntelligenceFindingsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listIntelligenceFindings($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listManagedFoldersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $managedFoldersElement = new ManagedFolder(); + $managedFolders = [ + $managedFoldersElement, + ]; + $expectedResponse = new ListManagedFoldersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setManagedFolders($managedFolders); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $request = (new ListManagedFoldersRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listManagedFolders($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getManagedFolders()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/ListManagedFolders', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listManagedFoldersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $request = (new ListManagedFoldersRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listManagedFolders($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRapidCachesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $rapidCachesElement = new RapidCache(); + $rapidCaches = [ + $rapidCachesElement, + ]; + $expectedResponse = new ListRapidCachesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRapidCaches($rapidCaches); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $request = (new ListRapidCachesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listRapidCaches($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRapidCaches()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/ListRapidCaches', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRapidCachesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $request = (new ListRapidCachesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listRapidCaches($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function pauseAnywhereCacheTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone = 'zone3744684'; + $admissionPolicy = 'admissionPolicy1847270952'; + $state = 'state109757585'; + $pendingUpdate = false; + $ingestOnWrite = true; + $expectedResponse = new AnywhereCache(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone); + $expectedResponse->setAdmissionPolicy($admissionPolicy); + $expectedResponse->setState($state); + $expectedResponse->setPendingUpdate($pendingUpdate); + $expectedResponse->setIngestOnWrite($ingestOnWrite); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); + $request = (new PauseAnywhereCacheRequest()) + ->setName($formattedName); + $response = $gapicClient->pauseAnywhereCache($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/PauseAnywhereCache', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function pauseAnywhereCacheExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); + $request = (new PauseAnywhereCacheRequest()) + ->setName($formattedName); + try { + $gapicClient->pauseAnywhereCache($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function renameFolderTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/renameFolderTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $metageneration = 1048558813; + $expectedResponse = new Folder(); + $expectedResponse->setName($name2); + $expectedResponse->setMetageneration($metageneration); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/renameFolderTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); + $destinationFolderId = 'destinationFolderId368368539'; + $request = (new RenameFolderRequest()) + ->setName($formattedName) + ->setDestinationFolderId($destinationFolderId); + $response = $gapicClient->renameFolder($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/RenameFolder', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualApiRequestObject->getDestinationFolderId(); + $this->assertProtobufEquals($destinationFolderId, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/renameFolderTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function renameFolderExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/renameFolderTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); + $destinationFolderId = 'destinationFolderId368368539'; + $request = (new RenameFolderRequest()) + ->setName($formattedName) + ->setDestinationFolderId($destinationFolderId); + $response = $gapicClient->renameFolder($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/renameFolderTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function resumeAnywhereCacheTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone = 'zone3744684'; + $admissionPolicy = 'admissionPolicy1847270952'; + $state = 'state109757585'; + $pendingUpdate = false; + $ingestOnWrite = true; + $expectedResponse = new AnywhereCache(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone); + $expectedResponse->setAdmissionPolicy($admissionPolicy); + $expectedResponse->setState($state); + $expectedResponse->setPendingUpdate($pendingUpdate); + $expectedResponse->setIngestOnWrite($ingestOnWrite); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); + $request = (new ResumeAnywhereCacheRequest()) + ->setName($formattedName); + $response = $gapicClient->resumeAnywhereCache($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/ResumeAnywhereCache', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function resumeAnywhereCacheExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); + $request = (new ResumeAnywhereCacheRequest()) + ->setName($formattedName); + try { + $gapicClient->resumeAnywhereCache($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function summarizeIntelligenceFindingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $findingSummariesElement = new FindingSummary(); + $findingSummaries = [ + $findingSummariesElement, + ]; + $expectedResponse = new SummarizeIntelligenceFindingsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setFindingSummaries($findingSummaries); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $request = (new SummarizeIntelligenceFindingsRequest()) + ->setParent($parent); + $response = $gapicClient->summarizeIntelligenceFindings($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getFindingSummaries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/SummarizeIntelligenceFindings', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function summarizeIntelligenceFindingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $parent = 'parent-995424086'; + $request = (new SummarizeIntelligenceFindingsRequest()) + ->setParent($parent); + try { + $gapicClient->summarizeIntelligenceFindings($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TestIamPermissionsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + try { + $gapicClient->testIamPermissions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateAnywhereCacheTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateAnywhereCacheTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $zone = 'zone3744684'; + $admissionPolicy = 'admissionPolicy1847270952'; + $state = 'state109757585'; + $pendingUpdate = false; + $ingestOnWrite = true; + $expectedResponse = new AnywhereCache(); + $expectedResponse->setName($name); + $expectedResponse->setZone($zone); + $expectedResponse->setAdmissionPolicy($admissionPolicy); + $expectedResponse->setState($state); + $expectedResponse->setPendingUpdate($pendingUpdate); + $expectedResponse->setIngestOnWrite($ingestOnWrite); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateAnywhereCacheTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $anywhereCache = new AnywhereCache(); + $updateMask = new FieldMask(); + $request = (new UpdateAnywhereCacheRequest()) + ->setAnywhereCache($anywhereCache) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateAnywhereCache($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/UpdateAnywhereCache', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getAnywhereCache(); + $this->assertProtobufEquals($anywhereCache, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAnywhereCacheTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateAnywhereCacheExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateAnywhereCacheTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $anywhereCache = new AnywhereCache(); + $updateMask = new FieldMask(); + $request = (new UpdateAnywhereCacheRequest()) + ->setAnywhereCache($anywhereCache) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateAnywhereCache($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAnywhereCacheTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateFolderIntelligenceConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $expectedResponse = new IntelligenceConfig(); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $intelligenceConfig = new IntelligenceConfig(); + $updateMask = new FieldMask(); + $request = (new UpdateFolderIntelligenceConfigRequest()) + ->setIntelligenceConfig($intelligenceConfig) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateFolderIntelligenceConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/UpdateFolderIntelligenceConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getIntelligenceConfig(); + $this->assertProtobufEquals($intelligenceConfig, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateFolderIntelligenceConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $intelligenceConfig = new IntelligenceConfig(); + $updateMask = new FieldMask(); + $request = (new UpdateFolderIntelligenceConfigRequest()) + ->setIntelligenceConfig($intelligenceConfig) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateFolderIntelligenceConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateManagedFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $metageneration = 1048558813; + $expectedResponse = new ManagedFolder(); + $expectedResponse->setName($name); + $expectedResponse->setMetageneration($metageneration); + $transport->addResponse($expectedResponse); + // Mock request + $managedFolder = new ManagedFolder(); + $request = (new UpdateManagedFolderRequest()) + ->setManagedFolder($managedFolder); + $response = $gapicClient->updateManagedFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/UpdateManagedFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getManagedFolder(); + $this->assertProtobufEquals($managedFolder, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateManagedFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $managedFolder = new ManagedFolder(); + $request = (new UpdateManagedFolderRequest()) + ->setManagedFolder($managedFolder); + try { + $gapicClient->updateManagedFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateOrganizationIntelligenceConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $expectedResponse = new IntelligenceConfig(); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $intelligenceConfig = new IntelligenceConfig(); + $updateMask = new FieldMask(); + $request = (new UpdateOrganizationIntelligenceConfigRequest()) + ->setIntelligenceConfig($intelligenceConfig) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateOrganizationIntelligenceConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/UpdateOrganizationIntelligenceConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getIntelligenceConfig(); + $this->assertProtobufEquals($intelligenceConfig, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateOrganizationIntelligenceConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $intelligenceConfig = new IntelligenceConfig(); + $updateMask = new FieldMask(); + $request = (new UpdateOrganizationIntelligenceConfigRequest()) + ->setIntelligenceConfig($intelligenceConfig) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateOrganizationIntelligenceConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateProjectIntelligenceConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $expectedResponse = new IntelligenceConfig(); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $intelligenceConfig = new IntelligenceConfig(); + $updateMask = new FieldMask(); + $request = (new UpdateProjectIntelligenceConfigRequest()) + ->setIntelligenceConfig($intelligenceConfig) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateProjectIntelligenceConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/UpdateProjectIntelligenceConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getIntelligenceConfig(); + $this->assertProtobufEquals($intelligenceConfig, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateProjectIntelligenceConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $intelligenceConfig = new IntelligenceConfig(); + $updateMask = new FieldMask(); + $request = (new UpdateProjectIntelligenceConfigRequest()) + ->setIntelligenceConfig($intelligenceConfig) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateProjectIntelligenceConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateRapidCacheTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateRapidCacheTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $zone = 'zone3744684'; + $cacheType = 'cacheType29096407'; + $admissionPolicy = 'admissionPolicy1847270952'; + $state = 'state109757585'; + $pendingUpdate = false; + $expectedResponse = new RapidCache(); + $expectedResponse->setName($name); + $expectedResponse->setZone($zone); + $expectedResponse->setCacheType($cacheType); + $expectedResponse->setAdmissionPolicy($admissionPolicy); + $expectedResponse->setState($state); + $expectedResponse->setPendingUpdate($pendingUpdate); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateRapidCacheTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $rapidCache = new RapidCache(); + $updateMask = new FieldMask(); + $request = (new UpdateRapidCacheRequest()) + ->setRapidCache($rapidCache) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateRapidCache($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/UpdateRapidCache', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getRapidCache(); + $this->assertProtobufEquals($rapidCache, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateRapidCacheTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateRapidCacheExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateRapidCacheTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $rapidCache = new RapidCache(); + $updateMask = new FieldMask(); + $request = (new UpdateRapidCacheRequest()) + ->setRapidCache($rapidCache) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateRapidCache($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateRapidCacheTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createAnywhereCacheAsyncTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createAnywhereCacheTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $zone = 'zone3744684'; + $admissionPolicy = 'admissionPolicy1847270952'; + $state = 'state109757585'; + $pendingUpdate = false; + $ingestOnWrite = true; + $expectedResponse = new AnywhereCache(); + $expectedResponse->setName($name); + $expectedResponse->setZone($zone); + $expectedResponse->setAdmissionPolicy($admissionPolicy); + $expectedResponse->setState($state); + $expectedResponse->setPendingUpdate($pendingUpdate); + $expectedResponse->setIngestOnWrite($ingestOnWrite); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAnywhereCacheTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $anywhereCache = new AnywhereCache(); + $request = (new CreateAnywhereCacheRequest()) + ->setParent($formattedParent) + ->setAnywhereCache($anywhereCache); + $response = $gapicClient->createAnywhereCacheAsync($request)->wait(); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/CreateAnywhereCache', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAnywhereCache(); + $this->assertProtobufEquals($anywhereCache, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAnywhereCacheTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } +} From d6e61cfe04b70b5132b10728dc9b16b3c56ab76b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 24 Jul 2026 15:06:24 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- StorageControl/metadata/V2/StorageControl.php | 2 +- .../create_rapid_cache.php | 0 .../StorageControlClient/get_rapid_cache.php | 0 .../list_intelligence_findings.php | 2 +- .../list_rapid_caches.php | 0 .../summarize_intelligence_findings.php | 4 +- .../update_managed_folder.php | 0 .../update_rapid_cache.php | 0 StorageControl/src/V2/AnywhereCache.php | 60 +- .../src/V2/Client/StorageControlClient.php | 168 +- .../src/V2/CreateAnywhereCacheMetadata.php | 48 + .../src}/V2/CreateRapidCacheMetadata.php | 0 .../src}/V2/CreateRapidCacheRequest.php | 0 StorageControl/src/V2/FindingSummary.php | 6 +- .../V2/GetFolderIntelligenceConfigRequest.php | 4 - ...tOrganizationIntelligenceConfigRequest.php | 4 - .../GetProjectIntelligenceConfigRequest.php | 4 - .../src}/V2/GetRapidCacheRequest.php | 0 .../V2/IntelligenceConfig/EditionConfig.php | 9 +- .../src/V2/IntelligenceFindingRevision.php | 14 +- .../src}/V2/ListRapidCachesRequest.php | 0 .../src}/V2/ListRapidCachesResponse.php | 0 StorageControl/src/V2/ManagedFolder.php | 44 + .../V2/ManagedFolder/RapidCacheConfig.php | 0 .../RapidCacheConfig/RapidCachePolicy.php | 0 .../RapidCachePolicy/IngestOnWrite.php | 0 .../src}/V2/RapidCache.php | 0 .../SummarizeIntelligenceFindingsRequest.php | 2 +- .../SummarizeIntelligenceFindingsResponse.php | 2 +- .../src/V2/UpdateAnywhereCacheMetadata.php | 62 +- .../UpdateFolderIntelligenceConfigRequest.php | 4 - .../src}/V2/UpdateManagedFolderRequest.php | 0 ...eOrganizationIntelligenceConfigRequest.php | 4 - ...UpdateProjectIntelligenceConfigRequest.php | 4 - .../src}/V2/UpdateRapidCacheMetadata.php | 0 .../src}/V2/UpdateRapidCacheRequest.php | 0 StorageControl/src/V2/gapic_metadata.json | 25 + .../storage_control_client_config.json | 26 +- .../storage_control_descriptor_config.php | 94 + .../storage_control_rest_client_config.php | 83 + .../V2/Client/StorageControlClientTest.php | 510 +++ .../Storage/Control/V2/StorageControl.php | 39 - .../Storage/Control/V2/AnywhereCache.php | 435 --- .../V2/CommonLongRunningOperationMetadata.php | 273 -- .../V2/CreateAnywhereCacheMetadata.php | 322 -- .../Control/V2/CreateAnywhereCacheRequest.php | 189 - .../Control/V2/CreateFolderRequest.php | 280 -- .../Control/V2/CreateManagedFolderRequest.php | 221 -- .../V2/DeleteFolderRecursiveMetadata.php | 112 - .../V2/DeleteFolderRecursiveRequest.php | 225 -- .../Control/V2/DeleteFolderRequest.php | 221 -- .../Control/V2/DeleteManagedFolderRequest.php | 271 -- .../V2/DisableAnywhereCacheRequest.php | 128 - .../Storage/Control/V2/FindingCategory.php | 61 - .../Storage/Control/V2/FindingSeverity.php | 54 - .../Storage/Control/V2/FindingSummary.php | 307 -- .../V2/FindingSummary/SummaryDetails.php | 176 - .../SummaryDetails/ResourceType.php | 61 - .../Cloud/Storage/Control/V2/FindingType.php | 77 - .../Cloud/Storage/Control/V2/Folder.php | 258 -- .../Control/V2/GetAnywhereCacheRequest.php | 124 - .../V2/GetFolderIntelligenceConfigRequest.php | 93 - .../Storage/Control/V2/GetFolderRequest.php | 221 -- .../V2/GetIntelligenceFindingRequest.php | 93 - .../GetIntelligenceFindingRevisionRequest.php | 93 - .../Control/V2/GetManagedFolderRequest.php | 225 -- ...tOrganizationIntelligenceConfigRequest.php | 93 - .../GetProjectIntelligenceConfigRequest.php | 93 - .../Control/V2/GetStorageLayoutRequest.php | 162 - .../Storage/Control/V2/IntelligenceConfig.php | 314 -- .../V2/IntelligenceConfig/EditionConfig.php | 92 - .../EffectiveIntelligenceConfig.php | 113 - .../EffectiveEdition.php | 61 - .../Control/V2/IntelligenceConfig/Filter.php | 185 - .../Filter/CloudStorageBuckets.php | 95 - .../Filter/CloudStorageLocations.php | 75 - .../V2/IntelligenceConfig/TrialConfig.php | 77 - .../Control/V2/IntelligenceFinding.php | 594 ---- ...dlineAndArchivalStorageOperationsSpike.php | 142 - .../BucketContribution.php | 213 -- .../BucketContribution/Contribution.php | 72 - .../Contribution/PrefixContribution.php | 143 - .../CrossRegionEgressSpike.php | 149 - .../BucketContribution.php | 221 -- .../BucketContribution/Contribution.php | 72 - .../Contribution/PrefixContribution.php | 148 - .../StorageGrowthAboveTrend.php | 140 - .../BucketContribution.php | 180 - .../ThrottledRequestSpike.php | 145 - .../BucketContribution.php | 217 -- .../BucketContribution/Contribution.php | 72 - .../Contribution/PrefixContribution.php | 143 - .../V2/IntelligenceFindingRevision.php | 172 - .../Control/V2/ListAnywhereCachesRequest.php | 195 - .../Control/V2/ListAnywhereCachesResponse.php | 105 - .../Storage/Control/V2/ListFoldersRequest.php | 373 -- .../Control/V2/ListFoldersResponse.php | 105 - ...istIntelligenceFindingRevisionsRequest.php | 181 - ...stIntelligenceFindingRevisionsResponse.php | 102 - .../V2/ListIntelligenceFindingsRequest.php | 218 -- .../V2/ListIntelligenceFindingsResponse.php | 106 - .../Control/V2/ListManagedFoldersRequest.php | 233 -- .../Control/V2/ListManagedFoldersResponse.php | 105 - .../Storage/Control/V2/ManagedFolder.php | 249 -- .../Control/V2/PauseAnywhereCacheRequest.php | 128 - .../Storage/Control/V2/PendingRenameInfo.php | 67 - .../Control/V2/RenameFolderMetadata.php | 146 - .../Control/V2/RenameFolderRequest.php | 261 -- .../Control/V2/ResumeAnywhereCacheRequest.php | 128 - .../Storage/Control/V2/StorageLayout.php | 239 -- .../StorageLayout/CustomPlacementConfig.php | 69 - .../StorageLayout/HierarchicalNamespace.php | 67 - .../SummarizeIntelligenceFindingsRequest.php | 301 -- .../ResourceScope.php | 61 - .../SummarizeIntelligenceFindingsResponse.php | 110 - .../V2/UpdateAnywhereCacheMetadata.php | 322 -- .../Control/V2/UpdateAnywhereCacheRequest.php | 210 -- .../UpdateFolderIntelligenceConfigRequest.php | 185 - ...eOrganizationIntelligenceConfigRequest.php | 185 - ...UpdateProjectIntelligenceConfigRequest.php | 185 - .../create_anywhere_cache.php | 86 - .../V2/StorageControlClient/create_folder.php | 82 - .../create_managed_folder.php | 77 - .../V2/StorageControlClient/delete_folder.php | 71 - .../delete_folder_recursive.php | 83 - .../delete_managed_folder.php | 75 - .../disable_anywhere_cache.php | 79 - .../get_anywhere_cache.php | 76 - .../V2/StorageControlClient/get_folder.php | 73 - .../get_folder_intelligence_config.php | 74 - .../StorageControlClient/get_iam_policy.php | 75 - .../get_intelligence_finding.php | 78 - .../get_intelligence_finding_revision.php | 79 - .../get_managed_folder.php | 77 - .../get_organization_intelligence_config.php | 74 - .../get_project_intelligence_config.php | 74 - .../get_storage_layout.php | 72 - .../list_anywhere_caches.php | 76 - .../V2/StorageControlClient/list_folders.php | 78 - .../list_intelligence_finding_revisions.php | 83 - .../list_intelligence_findings.php | 78 - .../list_managed_folders.php | 76 - .../pause_anywhere_cache.php | 76 - .../V2/StorageControlClient/rename_folder.php | 90 - .../resume_anywhere_cache.php | 76 - .../StorageControlClient/set_iam_policy.php | 77 - .../summarize_intelligence_findings.php | 80 - .../test_iam_permissions.php | 84 - .../update_anywhere_cache.php | 75 - .../update_folder_intelligence_config.php | 62 - ...pdate_organization_intelligence_config.php | 62 - .../update_project_intelligence_config.php | 62 - .../v2/src/V2/Client/StorageControlClient.php | 1594 --------- .../v2/src/V2/gapic_metadata.json | 203 -- .../storage_control_client_config.json | 232 -- .../storage_control_descriptor_config.php | 697 ---- .../storage_control_rest_client_config.php | 257 -- .../V2/Client/StorageControlClientTest.php | 3167 ----------------- 158 files changed, 1129 insertions(+), 22024 deletions(-) rename {owl-bot-staging/StorageControl/v2 => StorageControl}/samples/V2/StorageControlClient/create_rapid_cache.php (100%) rename {owl-bot-staging/StorageControl/v2 => StorageControl}/samples/V2/StorageControlClient/get_rapid_cache.php (100%) rename {owl-bot-staging/StorageControl/v2 => StorageControl}/samples/V2/StorageControlClient/list_rapid_caches.php (100%) rename {owl-bot-staging/StorageControl/v2 => StorageControl}/samples/V2/StorageControlClient/update_managed_folder.php (100%) rename {owl-bot-staging/StorageControl/v2 => StorageControl}/samples/V2/StorageControlClient/update_rapid_cache.php (100%) rename {owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control => StorageControl/src}/V2/CreateRapidCacheMetadata.php (100%) rename {owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control => StorageControl/src}/V2/CreateRapidCacheRequest.php (100%) rename {owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control => StorageControl/src}/V2/GetRapidCacheRequest.php (100%) rename {owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control => StorageControl/src}/V2/ListRapidCachesRequest.php (100%) rename {owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control => StorageControl/src}/V2/ListRapidCachesResponse.php (100%) rename {owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control => StorageControl/src}/V2/ManagedFolder/RapidCacheConfig.php (100%) rename {owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control => StorageControl/src}/V2/ManagedFolder/RapidCacheConfig/RapidCachePolicy.php (100%) rename {owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control => StorageControl/src}/V2/ManagedFolder/RapidCacheConfig/RapidCachePolicy/IngestOnWrite.php (100%) rename {owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control => StorageControl/src}/V2/RapidCache.php (100%) rename {owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control => StorageControl/src}/V2/UpdateManagedFolderRequest.php (100%) rename {owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control => StorageControl/src}/V2/UpdateRapidCacheMetadata.php (100%) rename {owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control => StorageControl/src}/V2/UpdateRapidCacheRequest.php (100%) delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/GPBMetadata/Google/Storage/Control/V2/StorageControl.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/AnywhereCache.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CommonLongRunningOperationMetadata.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateAnywhereCacheMetadata.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateAnywhereCacheRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateFolderRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateManagedFolderRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRecursiveMetadata.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRecursiveRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteManagedFolderRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DisableAnywhereCacheRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingCategory.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSeverity.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary/SummaryDetails.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary/SummaryDetails/ResourceType.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingType.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/Folder.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetAnywhereCacheRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetFolderIntelligenceConfigRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetFolderRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetIntelligenceFindingRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetIntelligenceFindingRevisionRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetManagedFolderRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetOrganizationIntelligenceConfigRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetProjectIntelligenceConfigRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetStorageLayoutRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EditionConfig.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EffectiveIntelligenceConfig.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EffectiveIntelligenceConfig/EffectiveEdition.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter/CloudStorageBuckets.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter/CloudStorageLocations.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/TrialConfig.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution/Contribution.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution/Contribution/PrefixContribution.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution/Contribution.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution/Contribution/PrefixContribution.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/StorageGrowthAboveTrend.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/StorageGrowthAboveTrend/BucketContribution.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution/Contribution.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution/Contribution/PrefixContribution.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFindingRevision.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListAnywhereCachesRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListAnywhereCachesResponse.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListFoldersRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListFoldersResponse.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingRevisionsRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingRevisionsResponse.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingsRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingsResponse.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListManagedFoldersRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListManagedFoldersResponse.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/PauseAnywhereCacheRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/PendingRenameInfo.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RenameFolderMetadata.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RenameFolderRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ResumeAnywhereCacheRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout/CustomPlacementConfig.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout/HierarchicalNamespace.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsRequest/ResourceScope.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsResponse.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateAnywhereCacheMetadata.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateAnywhereCacheRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateFolderIntelligenceConfigRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateOrganizationIntelligenceConfigRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateProjectIntelligenceConfigRequest.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_anywhere_cache.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_folder.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_managed_folder.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_folder.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_folder_recursive.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_managed_folder.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/disable_anywhere_cache.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_anywhere_cache.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_folder.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_folder_intelligence_config.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_iam_policy.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_intelligence_finding.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_intelligence_finding_revision.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_managed_folder.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_organization_intelligence_config.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_project_intelligence_config.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_storage_layout.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_anywhere_caches.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_folders.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_intelligence_finding_revisions.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_intelligence_findings.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_managed_folders.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/pause_anywhere_cache.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/rename_folder.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/resume_anywhere_cache.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/set_iam_policy.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/summarize_intelligence_findings.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_anywhere_cache.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_folder_intelligence_config.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_organization_intelligence_config.php delete mode 100644 owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_project_intelligence_config.php delete mode 100644 owl-bot-staging/StorageControl/v2/src/V2/Client/StorageControlClient.php delete mode 100644 owl-bot-staging/StorageControl/v2/src/V2/gapic_metadata.json delete mode 100644 owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_client_config.json delete mode 100644 owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_descriptor_config.php delete mode 100644 owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_rest_client_config.php delete mode 100644 owl-bot-staging/StorageControl/v2/tests/Unit/V2/Client/StorageControlClientTest.php diff --git a/StorageControl/metadata/V2/StorageControl.php b/StorageControl/metadata/V2/StorageControl.php index 67592ef0b934..6c874b5180c5 100644 --- a/StorageControl/metadata/V2/StorageControl.php +++ b/StorageControl/metadata/V2/StorageControl.php @@ -30,7 +30,7 @@ public static function initOnce() { \GPBMetadata\Google\Rpc\Status::initOnce(); \GPBMetadata\Google\Type\Interval::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xDB\xBF\x01\x0A/google/storage/control/v2/storage_control.proto\x12\x19google.storage.control.v2\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A\x18google/api/routing.proto\x1A\x1Egoogle/iam/v1/iam_policy.proto\x1A\x1Agoogle/iam/v1/policy.proto\x1A#google/longrunning/operations.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\x1A\x1Agoogle/type/interval.proto\"+\x0A\x11PendingRenameInfo\x12\x16\x0A\x09operation\x18\x01 \x01(\x09B\x03\xE0A\x03\"\xE2\x02\x0A\x06Folder\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1B\x0A\x0Emetageneration\x18\x03 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12N\x0A\x13pending_rename_info\x18\x07 \x01(\x0B2,.google.storage.control.v2.PendingRenameInfoB\x03\xE0A\x03:l\xEAAi\x0A\x1Dstorage.googleapis.com/Folder\x127projects/{project}/buckets/{bucket}/folders/{folder=**}*\x07folders2\x06folder\"\xF4\x01\x0A\x10GetFolderRequest\x123\x0A\x04name\x18\x06 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Folder\x12\$\x0A\x17if_metageneration_match\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\xD5\x01\x0A\x13CreateFolderRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Dstorage.googleapis.com/Folder\x126\x0A\x06folder\x18\x02 \x01(\x0B2!.google.storage.control.v2.FolderB\x03\xE0A\x02\x12\x16\x0A\x09folder_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09recursive\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xF7\x01\x0A\x13DeleteFolderRequest\x123\x0A\x04name\x18\x06 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Folder\x12\$\x0A\x17if_metageneration_match\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\x8C\x02\x0A\x12ListFoldersRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Dstorage.googleapis.com/Folder\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06prefix\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09delimiter\x18\x08 \x01(\x09B\x03\xE0A\x01\x12 \x0A\x13lexicographic_start\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11lexicographic_end\x18\x07 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x0Arequest_id\x18\x09 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"b\x0A\x13ListFoldersResponse\x122\x0A\x07folders\x18\x01 \x03(\x0B2!.google.storage.control.v2.Folder\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x9B\x02\x0A\x13RenameFolderRequest\x123\x0A\x04name\x18\x07 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Folder\x12\"\x0A\x15destination_folder_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\$\x0A\x17if_metageneration_match\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x05 \x01(\x03H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x06 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\x8A\x02\x0A\x1CDeleteFolderRecursiveRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Folder\x12)\x0A\x17if_metageneration_match\x18\x02 \x01(\x03B\x03\xE0A\x01H\x00\x88\x01\x01\x12-\x0A\x1Bif_metageneration_not_match\x18\x03 \x01(\x03B\x03\xE0A\x01H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\x9A\x02\x0A\"CommonLongRunningOperationMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04type\x18\x04 \x01(\x09B\x03\xE0A\x03\x12#\x0A\x16requested_cancellation\x18\x05 \x01(\x08B\x03\xE0A\x03\x12\x1D\x0A\x10progress_percent\x18\x06 \x01(\x05B\x03\xE0A\x03\"\xA7\x01\x0A\x14RenameFolderMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x18\x0A\x10source_folder_id\x18\x02 \x01(\x09\x12\x1D\x0A\x15destination_folder_id\x18\x03 \x01(\x09\"\x8A\x01\x0A\x1DDeleteFolderRecursiveMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x11\x0A\x09folder_id\x18\x02 \x01(\x09\"\xF8\x03\x0A\x0DStorageLayout\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x15\x0A\x08location\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x1A\x0A\x0Dlocation_type\x18\x03 \x01(\x09B\x03\xE0A\x03\x12d\x0A\x17custom_placement_config\x18\x04 \x01(\x0B2>.google.storage.control.v2.StorageLayout.CustomPlacementConfigB\x03\xE0A\x03\x12c\x0A\x16hierarchical_namespace\x18\x05 \x01(\x0B2>.google.storage.control.v2.StorageLayout.HierarchicalNamespaceB\x03\xE0A\x03\x1A/\x0A\x15CustomPlacementConfig\x12\x16\x0A\x0Edata_locations\x18\x01 \x03(\x09\x1A(\x0A\x15HierarchicalNamespace\x12\x0F\x0A\x07enabled\x18\x01 \x01(\x08:{\xEAAx\x0A\$storage.googleapis.com/StorageLayout\x121projects/{project}/buckets/{bucket}/storageLayout*\x0EstorageLayouts2\x0DstorageLayout\"\x86\x01\x0A\x17GetStorageLayoutRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/StorageLayout\x12\x0E\x0A\x06prefix\x18\x02 \x01(\x09\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xBF\x02\x0A\x0DManagedFolder\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1B\x0A\x0Emetageneration\x18\x03 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03:\x91\x01\xEAA\x8D\x01\x0A\$storage.googleapis.com/ManagedFolder\x12Fprojects/{project}/buckets/{bucket}/managedFolders/{managed_folder=**}*\x0EmanagedFolders2\x0DmanagedFolder\"\x82\x02\x0A\x17GetManagedFolderRequest\x12:\x0A\x04name\x18\x06 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/ManagedFolder\x12\$\x0A\x17if_metageneration_match\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\xE2\x01\x0A\x1ACreateManagedFolderRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$storage.googleapis.com/ManagedFolder\x12E\x0A\x0Emanaged_folder\x18\x02 \x01(\x0B2(.google.storage.control.v2.ManagedFolderB\x03\xE0A\x02\x12\x1E\x0A\x11managed_folder_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\x9E\x02\x0A\x1ADeleteManagedFolderRequest\x12:\x0A\x04name\x18\x07 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/ManagedFolder\x12\$\x0A\x17if_metageneration_match\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03H\x01\x88\x01\x01\x12\x17\x0A\x0Fallow_non_empty\x18\x05 \x01(\x08\x12\x1F\x0A\x0Arequest_id\x18\x06 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\xC0\x01\x0A\x19ListManagedFoldersRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$storage.googleapis.com/ManagedFolder\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06prefix\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"x\x0A\x1AListManagedFoldersResponse\x12A\x0A\x0Fmanaged_folders\x18\x01 \x03(\x0B2(.google.storage.control.v2.ManagedFolder\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xB0\x02\x0A\x1BCreateAnywhereCacheMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x1E\x0A\x11anywhere_cache_id\x18\x02 \x01(\x09H\x00\x88\x01\x01\x12\x11\x0A\x04zone\x18\x06 \x01(\x09H\x01\x88\x01\x01\x12+\x0A\x03ttl\x18\x03 \x01(\x0B2\x19.google.protobuf.DurationH\x02\x88\x01\x01\x12\x1D\x0A\x10admission_policy\x18\x05 \x01(\x09H\x03\x88\x01\x01B\x14\x0A\x12_anywhere_cache_idB\x07\x0A\x05_zoneB\x06\x0A\x04_ttlB\x13\x0A\x11_admission_policy\"\xB0\x02\x0A\x1BUpdateAnywhereCacheMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x1E\x0A\x11anywhere_cache_id\x18\x02 \x01(\x09H\x00\x88\x01\x01\x12\x11\x0A\x04zone\x18\x05 \x01(\x09H\x01\x88\x01\x01\x12+\x0A\x03ttl\x18\x03 \x01(\x0B2\x19.google.protobuf.DurationH\x02\x88\x01\x01\x12\x1D\x0A\x10admission_policy\x18\x04 \x01(\x09H\x03\x88\x01\x01B\x14\x0A\x12_anywhere_cache_idB\x07\x0A\x05_zoneB\x06\x0A\x04_ttlB\x13\x0A\x11_admission_policy\"\xA5\x03\x0A\x0DAnywhereCache\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x05\x12\x11\x0A\x04zone\x18\x0A \x01(\x09B\x03\xE0A\x05\x12&\x0A\x03ttl\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x12\x18\x0A\x10admission_policy\x18\x09 \x01(\x09\x12\x12\x0A\x05state\x18\x05 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1B\x0A\x0Epending_update\x18\x08 \x01(\x08B\x03\xE0A\x03:\x8E\x01\xEAA\x8A\x01\x0A\$storage.googleapis.com/AnywhereCache\x12Cprojects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}*\x0EanywhereCaches2\x0DanywhereCache\"\xC2\x01\x0A\x1ACreateAnywhereCacheRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$storage.googleapis.com/AnywhereCache\x12E\x0A\x0Eanywhere_cache\x18\x03 \x01(\x0B2(.google.storage.control.v2.AnywhereCacheB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xBA\x01\x0A\x1AUpdateAnywhereCacheRequest\x12E\x0A\x0Eanywhere_cache\x18\x01 \x01(\x0B2(.google.storage.control.v2.AnywhereCacheB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"z\x0A\x1BDisableAnywhereCacheRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/AnywhereCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"x\x0A\x19PauseAnywhereCacheRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/AnywhereCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"y\x0A\x1AResumeAnywhereCacheRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/AnywhereCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"v\x0A\x17GetAnywhereCacheRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/AnywhereCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xA1\x01\x0A\x19ListAnywhereCachesRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$storage.googleapis.com/AnywhereCache\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"x\x0A\x1AListAnywhereCachesResponse\x12A\x0A\x0Fanywhere_caches\x18\x01 \x03(\x0B2(.google.storage.control.v2.AnywhereCache\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x8E\x0E\x0A\x12IntelligenceConfig\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12X\x0A\x0Eedition_config\x18\x02 \x01(\x0E2;.google.storage.control.v2.IntelligenceConfig.EditionConfigB\x03\xE0A\x01\x124\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12I\x0A\x06filter\x18\x04 \x01(\x0B24.google.storage.control.v2.IntelligenceConfig.FilterB\x03\xE0A\x01\x12u\x0A\x1Deffective_intelligence_config\x18\x05 \x01(\x0B2I.google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfigB\x03\xE0A\x03\x12O\x0A\x0Ctrial_config\x18\x07 \x01(\x0B29.google.storage.control.v2.IntelligenceConfig.TrialConfig\x1A\xFC\x04\x0A\x06Filter\x12v\x0A included_cloud_storage_locations\x18\x01 \x01(\x0B2J.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocationsH\x00\x12v\x0A excluded_cloud_storage_locations\x18\x02 \x01(\x0B2J.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocationsH\x00\x12r\x0A\x1Eincluded_cloud_storage_buckets\x18\x03 \x01(\x0B2H.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBucketsH\x01\x12r\x0A\x1Eexcluded_cloud_storage_buckets\x18\x04 \x01(\x0B2H.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBucketsH\x01\x1A/\x0A\x15CloudStorageLocations\x12\x16\x0A\x09locations\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A5\x0A\x13CloudStorageBuckets\x12\x1E\x0A\x11bucket_id_regexes\x18\x01 \x03(\x09B\x03\xE0A\x01B\x19\x0A\x17cloud_storage_locationsB\x17\x0A\x15cloud_storage_buckets\x1A\x8A\x02\x0A\x1BEffectiveIntelligenceConfig\x12z\x0A\x11effective_edition\x18\x01 \x01(\x0E2Z.google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEditionB\x03\xE0A\x03\x12 \x0A\x13intelligence_config\x18\x02 \x01(\x09B\x03\xE0A\x03\"M\x0A\x10EffectiveEdition\x12!\x0A\x1DEFFECTIVE_EDITION_UNSPECIFIED\x10\x00\x12\x08\x0A\x04NONE\x10\x01\x12\x0C\x0A\x08STANDARD\x10\x02\x1AC\x0A\x0BTrialConfig\x124\x0A\x0Bexpire_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\"c\x0A\x0DEditionConfig\x12\x1E\x0A\x1AEDITION_CONFIG_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07INHERIT\x10\x01\x12\x0C\x0A\x08DISABLED\x10\x02\x12\x0C\x0A\x08STANDARD\x10\x03\x12\x09\x0A\x05TRIAL\x10\x05:\x8B\x02\xEAA\x87\x02\x0A)storage.googleapis.com/IntelligenceConfig\x128folders/{folder}/locations/{location}/intelligenceConfig\x12;organizations/{org}/locations/{location}/intelligenceConfig\x12:projects/{project}/locations/{location}/intelligenceConfig*\x13intelligenceConfigs2\x12intelligenceConfig\"\xD5\x01\x0A+UpdateOrganizationIntelligenceConfigRequest\x12O\x0A\x13intelligence_config\x18\x01 \x01(\x0B2-.google.storage.control.v2.IntelligenceConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xCF\x01\x0A%UpdateFolderIntelligenceConfigRequest\x12O\x0A\x13intelligence_config\x18\x01 \x01(\x0B2-.google.storage.control.v2.IntelligenceConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xD0\x01\x0A&UpdateProjectIntelligenceConfigRequest\x12O\x0A\x13intelligence_config\x18\x01 \x01(\x0B2-.google.storage.control.v2.IntelligenceConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"k\x0A(GetOrganizationIntelligenceConfigRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)storage.googleapis.com/IntelligenceConfig\"e\x0A\"GetFolderIntelligenceConfigRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)storage.googleapis.com/IntelligenceConfig\"f\x0A#GetProjectIntelligenceConfigRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)storage.googleapis.com/IntelligenceConfig\"\xBE \x0A\x13IntelligenceFinding\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x03\x129\x0A\x04type\x18\x03 \x01(\x0E2&.google.storage.control.v2.FindingTypeB\x03\xE0A\x03\x12A\x0A\x08category\x18\x04 \x01(\x0E2*.google.storage.control.v2.FindingCategoryB\x03\xE0A\x03\x12A\x0A\x08severity\x18\x05 \x01(\x0E2*.google.storage.control.v2.FindingSeverityB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1C\x0A\x0Ftarget_resource\x18\x08 \x01(\x09B\x03\xE0A\x03\x12!\x0A\x14associated_resources\x18\x09 \x03(\x09B\x03\xE0A\x03\x126\x0A\x12observation_period\x18\x0A \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12\x97\x01\x0A.coldline_and_archival_storage_operations_spike\x18\x0B \x01(\x0B2X.google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpikeB\x03\xE0A\x03H\x00\x12m\x0A\x18throttled_requests_spike\x18\x0C \x01(\x0B2D.google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpikeB\x03\xE0A\x03H\x00\x12o\x0A\x19cross_region_egress_spike\x18\x0D \x01(\x0B2E.google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpikeB\x03\xE0A\x03H\x00\x12q\x0A\x1Astorage_growth_above_trend\x18\x0E \x01(\x0B2F.google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrendB\x03\xE0A\x03H\x00\x1A\x89\x07\x0A)ColdlineAndArchivalStorageOperationsSpike\x12 \x0A\x13percentage_increase\x18\x01 \x01(\x01B\x03\xE0A\x03\x12#\x0A\x16total_operations_count\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x85\x01\x0A\x0Btop_buckets\x18\x03 \x03(\x0B2k.google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContributionB\x03\xE0A\x03\x1A\x8C\x05\x0A\x12BucketContribution\x125\x0A\x06bucket\x18\x01 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Bucket\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12#\x0A\x16total_operations_count\x18\x03 \x01(\x03B\x03\xE0A\x03\x12\x95\x01\x0A\x0Ccontribution\x18\x04 \x01(\x0B2x.google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.ContributionB\x03\xE0A\x03H\x00\x12(\x0A\x05error\x18\x05 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03H\x00\x1A\xAA\x02\x0A\x0CContribution\x12\xA7\x01\x0A\x0Ctop_prefixes\x18\x01 \x03(\x0B2\x8B\x01.google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.Contribution.PrefixContributionB\x03\xE0A\x03\x1Ap\x0A\x12PrefixContribution\x12\x13\x0A\x06prefix\x18\x01 \x01(\x09B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12#\x0A\x16total_operations_count\x18\x03 \x01(\x03B\x03\xE0A\x03B\x09\x0A\x07details\x1A\xAF\x06\x0A\x16CrossRegionEgressSpike\x12\x1F\x0A\x12total_egress_bytes\x18\x01 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12r\x0A\x0Btop_buckets\x18\x03 \x03(\x0B2X.google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContributionB\x03\xE0A\x03\x1A\xDD\x04\x0A\x12BucketContribution\x125\x0A\x06bucket\x18\x01 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Bucket\x12\x1F\x0A\x12total_egress_bytes\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03\x12\x82\x01\x0A\x0Ccontribution\x18\x04 \x01(\x0B2e.google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.ContributionB\x03\xE0A\x03H\x00\x12(\x0A\x05error\x18\x05 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03H\x00\x1A\x92\x02\x0A\x0CContribution\x12\x93\x01\x0A\x0Ctop_prefixes\x18\x01 \x03(\x0B2x.google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution.PrefixContributionB\x03\xE0A\x03\x1Al\x0A\x12PrefixContribution\x12\x13\x0A\x06prefix\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x1F\x0A\x12total_egress_bytes\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03B\x09\x0A\x07details\x1A\xAB\x06\x0A\x15ThrottledRequestSpike\x12\x1F\x0A\x12throttled_requests\x18\x01 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12q\x0A\x0Btop_buckets\x18\x03 \x03(\x0B2W.google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContributionB\x03\xE0A\x03\x1A\xDB\x04\x0A\x12BucketContribution\x125\x0A\x06bucket\x18\x01 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Bucket\x12\x1F\x0A\x12throttled_requests\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03\x12\x81\x01\x0A\x0Ccontribution\x18\x04 \x01(\x0B2d.google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.ContributionB\x03\xE0A\x03H\x00\x12(\x0A\x05error\x18\x05 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03H\x00\x1A\x91\x02\x0A\x0CContribution\x12\x92\x01\x0A\x0Ctop_prefixes\x18\x01 \x03(\x0B2w.google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution.PrefixContributionB\x03\xE0A\x03\x1Al\x0A\x12PrefixContribution\x12\x13\x0A\x06prefix\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x1F\x0A\x12throttled_requests\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03B\x09\x0A\x07details\x1A\xA7\x03\x0A\x17StorageGrowthAboveTrend\x12'\x0A\x1Atotal_storage_growth_bytes\x18\x01 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12s\x0A\x0Btop_buckets\x18\x03 \x03(\x0B2Y.google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrend.BucketContributionB\x03\xE0A\x03\x1A\xCB\x01\x0A\x12BucketContribution\x125\x0A\x06bucket\x18\x01 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Bucket\x12'\x0A\x1Atotal_storage_growth_bytes\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03\x12(\x0A\x05error\x18\x05 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03H\x00B\x09\x0A\x07details:\xB0\x01\xEAA\xAC\x01\x0A*storage.googleapis.com/IntelligenceFinding\x12Sprojects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}*\x14intelligenceFindings2\x13intelligenceFindingB\x1E\x0A\x1Cintelligence_finding_details\"\x8D\x03\x0A\x1BIntelligenceFindingRevision\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12E\x0A\x08snapshot\x18\x02 \x01(\x0B2..google.storage.control.v2.IntelligenceFindingB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03:\xDD\x01\xEAA\xD9\x01\x0A2storage.googleapis.com/IntelligenceFindingRevision\x12hprojects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}*\x1CintelligenceFindingRevisions2\x1BintelligenceFindingRevision\"a\x0A\x1DGetIntelligenceFindingRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*storage.googleapis.com/IntelligenceFinding\"\xAB\x01\x0A\x1FListIntelligenceFindingsRequest\x12B\x0A\x06parent\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x12*storage.googleapis.com/IntelligenceFinding\x12\x13\x0A\x06filter\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x8A\x01\x0A ListIntelligenceFindingsResponse\x12M\x0A\x15intelligence_findings\x18\x01 \x03(\x0B2..google.storage.control.v2.IntelligenceFinding\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xB7\x02\x0A\$SummarizeIntelligenceFindingsRequest\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12j\x0A\x0Eresource_scope\x18\x02 \x01(\x0E2M.google.storage.control.v2.SummarizeIntelligenceFindingsRequest.ResourceScopeB\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x04 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"H\x0A\x0DResourceScope\x12\x1E\x0A\x1ARESOURCE_SCOPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06PARENT\x10\x01\x12\x0B\x0A\x07PROJECT\x10\x02\"\x86\x01\x0A%SummarizeIntelligenceFindingsResponse\x12D\x0A\x11finding_summaries\x18\x01 \x03(\x0B2).google.storage.control.v2.FindingSummary\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"q\x0A%GetIntelligenceFindingRevisionRequest\x12H\x0A\x04name\x18\x01 \x01(\x09B:\xE0A\x02\xFAA4\x0A2storage.googleapis.com/IntelligenceFindingRevision\"\xA6\x01\x0A'ListIntelligenceFindingRevisionsRequest\x12J\x0A\x06parent\x18\x01 \x01(\x09B:\xE0A\x02\xFAA4\x122storage.googleapis.com/IntelligenceFindingRevision\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xA3\x01\x0A(ListIntelligenceFindingRevisionsResponse\x12^\x0A\x1Eintelligence_finding_revisions\x18\x01 \x03(\x0B26.google.storage.control.v2.IntelligenceFindingRevision\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xBF\x05\x0A\x0EFindingSummary\x129\x0A\x04type\x18\x01 \x01(\x0E2&.google.storage.control.v2.FindingTypeB\x03\xE0A\x03\x12A\x0A\x08category\x18\x02 \x01(\x0E2*.google.storage.control.v2.FindingCategoryB\x03\xE0A\x03\x12\x1C\x0A\x0Ftarget_resource\x18\x04 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12A\x0A\x08severity\x18\x07 \x01(\x0E2*.google.storage.control.v2.FindingSeverityB\x03\xE0A\x03\x12V\x0A\x0Fsummary_details\x18\x08 \x03(\x0B28.google.storage.control.v2.FindingSummary.SummaryDetailsB\x03\xE0A\x03\x1A\x89\x02\x0A\x0ESummaryDetails\x12\x0F\x0A\x05count\x18\x01 \x01(\x03H\x00\x12\x14\x0A\x0Apercentage\x18\x02 \x01(\x02H\x00\x12a\x0A\x0Dresource_type\x18\x03 \x01(\x0E2E.google.storage.control.v2.FindingSummary.SummaryDetails.ResourceTypeB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x03\"F\x0A\x0CResourceType\x12\x1D\x0A\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PROJECT\x10\x01\x12\x0A\x0A\x06BUCKET\x10\x02B\x0B\x0A\x09magnitude*\xEF\x01\x0A\x0BFindingType\x12\x1C\x0A\x18FINDING_TYPE_UNSPECIFIED\x10\x00\x12?\x0A;FINDING_TYPE_COLDLINE_AND_ARCHIVAL_STORAGE_OPERATIONS_SPIKE\x10\x01\x12(\x0A\$FINDING_TYPE_THROTTLED_REQUEST_SPIKE\x10\x02\x12*\x0A&FINDING_TYPE_CROSS_REGION_EGRESS_SPIKE\x10\x03\x12+\x0A'FINDING_TYPE_STORAGE_GROWTH_ABOVE_TREND\x10\x04*{\x0A\x0FFindingCategory\x12 \x0A\x1CFINDING_CATEGORY_UNSPECIFIED\x10\x00\x12\$\x0A FINDING_CATEGORY_DATA_MANAGEMENT\x10\x01\x12 \x0A\x1CFINDING_CATEGORY_PERFORMANCE\x10\x02*R\x0A\x0FFindingSeverity\x12 \x0A\x1CFINDING_SEVERITY_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19FINDING_SEVERITY_CRITICAL\x10\x012\x847\x0A\x0EStorageControl\x12\x9A\x01\x0A\x0CCreateFolder\x12..google.storage.control.v2.CreateFolderRequest\x1A!.google.storage.control.v2.Folder\"7\xDAA\x17parent,folder,folder_id\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\x8F\x01\x0A\x0CDeleteFolder\x12..google.storage.control.v2.DeleteFolderRequest\x1A\x16.google.protobuf.Empty\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\x94\x01\x0A\x09GetFolder\x12+.google.storage.control.v2.GetFolderRequest\x1A!.google.storage.control.v2.Folder\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\x94\x01\x0A\x0BListFolders\x12-.google.storage.control.v2.ListFoldersRequest\x1A..google.storage.control.v2.ListFoldersResponse\"&\xDAA\x06parent\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xCD\x01\x0A\x0CRenameFolder\x12..google.storage.control.v2.RenameFolderRequest\x1A\x1D.google.longrunning.Operation\"n\xCAA\x1E\x0A\x06Folder\x12\x14RenameFolderMetadata\xDAA\x1Aname,destination_folder_id\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xE1\x01\x0A\x15DeleteFolderRecursive\x127.google.storage.control.v2.DeleteFolderRecursiveRequest\x1A\x1D.google.longrunning.Operation\"p\xCAA6\x0A\x15google.protobuf.Empty\x12\x1DDeleteFolderRecursiveMetadata\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA9\x01\x0A\x10GetStorageLayout\x122.google.storage.control.v2.GetStorageLayoutRequest\x1A(.google.storage.control.v2.StorageLayout\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xBF\x01\x0A\x13CreateManagedFolder\x125.google.storage.control.v2.CreateManagedFolderRequest\x1A(.google.storage.control.v2.ManagedFolder\"G\xDAA'parent,managed_folder,managed_folder_id\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\x9D\x01\x0A\x13DeleteManagedFolder\x125.google.storage.control.v2.DeleteManagedFolderRequest\x1A\x16.google.protobuf.Empty\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA9\x01\x0A\x10GetManagedFolder\x122.google.storage.control.v2.GetManagedFolderRequest\x1A(.google.storage.control.v2.ManagedFolder\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA9\x01\x0A\x12ListManagedFolders\x124.google.storage.control.v2.ListManagedFoldersRequest\x1A5.google.storage.control.v2.ListManagedFoldersResponse\"&\xDAA\x06parent\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xD1\x01\x0A\x13CreateAnywhereCache\x125.google.storage.control.v2.CreateAnywhereCacheRequest\x1A\x1D.google.longrunning.Operation\"d\xCAA,\x0A\x0DAnywhereCache\x12\x1BCreateAnywhereCacheMetadata\xDAA\x15parent,anywhere_cache\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xF9\x01\x0A\x13UpdateAnywhereCache\x125.google.storage.control.v2.UpdateAnywhereCacheRequest\x1A\x1D.google.longrunning.Operation\"\x8B\x01\xCAA,\x0A\x0DAnywhereCache\x12\x1BUpdateAnywhereCacheMetadata\xDAA\x1Aanywhere_cache,update_mask\x8A\xD3\xE4\x93\x029\x127\x0A\x13anywhere_cache.name\x12 {bucket=projects/*/buckets/*}/**\x12\xB1\x01\x0A\x14DisableAnywhereCache\x126.google.storage.control.v2.DisableAnywhereCacheRequest\x1A(.google.storage.control.v2.AnywhereCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xAD\x01\x0A\x12PauseAnywhereCache\x124.google.storage.control.v2.PauseAnywhereCacheRequest\x1A(.google.storage.control.v2.AnywhereCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xAF\x01\x0A\x13ResumeAnywhereCache\x125.google.storage.control.v2.ResumeAnywhereCacheRequest\x1A(.google.storage.control.v2.AnywhereCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA9\x01\x0A\x10GetAnywhereCache\x122.google.storage.control.v2.GetAnywhereCacheRequest\x1A(.google.storage.control.v2.AnywhereCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA9\x01\x0A\x12ListAnywhereCaches\x124.google.storage.control.v2.ListAnywhereCachesRequest\x1A5.google.storage.control.v2.ListAnywhereCachesResponse\"&\xDAA\x06parent\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xD2\x01\x0A\x1CGetProjectIntelligenceConfig\x12>.google.storage.control.v2.GetProjectIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"C\xDAA\x04name\x82\xD3\xE4\x93\x026\x124/v2/{name=projects/*/locations/*/intelligenceConfig}\x12\x9D\x02\x0A\x1FUpdateProjectIntelligenceConfig\x12A.google.storage.control.v2.UpdateProjectIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"\x87\x01\xDAA\x1Fintelligence_config,update_mask\x82\xD3\xE4\x93\x02_2H/v2/{intelligence_config.name=projects/*/locations/*/intelligenceConfig}:\x13intelligence_config\x12\xCF\x01\x0A\x1BGetFolderIntelligenceConfig\x12=.google.storage.control.v2.GetFolderIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"B\xDAA\x04name\x82\xD3\xE4\x93\x025\x123/v2/{name=folders/*/locations/*/intelligenceConfig}\x12\x9A\x02\x0A\x1EUpdateFolderIntelligenceConfig\x12@.google.storage.control.v2.UpdateFolderIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"\x86\x01\xDAA\x1Fintelligence_config,update_mask\x82\xD3\xE4\x93\x02^2G/v2/{intelligence_config.name=folders/*/locations/*/intelligenceConfig}:\x13intelligence_config\x12\xE1\x01\x0A!GetOrganizationIntelligenceConfig\x12C.google.storage.control.v2.GetOrganizationIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"H\xDAA\x04name\x82\xD3\xE4\x93\x02;\x129/v2/{name=organizations/*/locations/*/intelligenceConfig}\x12\xAC\x02\x0A\$UpdateOrganizationIntelligenceConfig\x12F.google.storage.control.v2.UpdateOrganizationIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"\x8C\x01\xDAA\x1Fintelligence_config,update_mask\x82\xD3\xE4\x93\x02d2M/v2/{intelligence_config.name=organizations/*/locations/*/intelligenceConfig}:\x13intelligence_config\x12\xA3\x01\x0A\x0CGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"X\xDAA\x08resource\x8A\xD3\xE4\x93\x02G\x12\x17\x0A\x08resource\x12\x0B{bucket=**}\x12,\x0A\x08resource\x12 {bucket=projects/*/buckets/*}/**\x12\xAA\x01\x0A\x0CSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"_\xDAA\x0Fresource,policy\x8A\xD3\xE4\x93\x02G\x12\x17\x0A\x08resource\x12\x0B{bucket=**}\x12,\x0A\x08resource\x12 {bucket=projects/*/buckets/*}/**\x12\x96\x02\x0A\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1A).google.iam.v1.TestIamPermissionsResponse\"\xAA\x01\xDAA\x14resource,permissions\x8A\xD3\xE4\x93\x02\x8C\x01\x12\x17\x0A\x08resource\x12\x0B{bucket=**}\x124\x0A\x08resource\x12({bucket=projects/*/buckets/*}/objects/**\x12;\x0A\x08resource\x12/{bucket=projects/*/buckets/*}/managedFolders/**\x12\xCB\x01\x0A\x16GetIntelligenceFinding\x128.google.storage.control.v2.GetIntelligenceFindingRequest\x1A..google.storage.control.v2.IntelligenceFinding\"G\xDAA\x04name\x82\xD3\xE4\x93\x02:\x128/v2/{name=projects/*/locations/*/intelligenceFindings/*}\x12\xDE\x01\x0A\x18ListIntelligenceFindings\x12:.google.storage.control.v2.ListIntelligenceFindingsRequest\x1A;.google.storage.control.v2.ListIntelligenceFindingsResponse\"I\xDAA\x06parent\x82\xD3\xE4\x93\x02:\x128/v2/{parent=projects/*/locations/*}/intelligenceFindings\x12\x89\x03\x0A\x1DSummarizeIntelligenceFindings\x12?.google.storage.control.v2.SummarizeIntelligenceFindingsRequest\x1A@.google.storage.control.v2.SummarizeIntelligenceFindingsResponse\"\xE4\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xD4\x01\x12B/v2/{parent=projects/*/locations/*}/intelligenceFindings:summarizeZC\x12A/v2/{parent=folders/*/locations/*}/intelligenceFindings:summarizeZI\x12G/v2/{parent=organizations/*/locations/*}/intelligenceFindings:summarize\x12\xEF\x01\x0A\x1EGetIntelligenceFindingRevision\x12@.google.storage.control.v2.GetIntelligenceFindingRevisionRequest\x1A6.google.storage.control.v2.IntelligenceFindingRevision\"S\xDAA\x04name\x82\xD3\xE4\x93\x02F\x12D/v2/{name=projects/*/locations/*/intelligenceFindings/*/revisions/*}\x12\x82\x02\x0A ListIntelligenceFindingRevisions\x12B.google.storage.control.v2.ListIntelligenceFindingRevisionsRequest\x1AC.google.storage.control.v2.ListIntelligenceFindingRevisionsResponse\"U\xDAA\x06parent\x82\xD3\xE4\x93\x02F\x12D/v2/{parent=projects/*/locations/*/intelligenceFindings/*}/revisions\x1A\xA7\x02\xCAA\x16storage.googleapis.com\xD2A\x8A\x02https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/devstorage.full_control,https://www.googleapis.com/auth/devstorage.read_only,https://www.googleapis.com/auth/devstorage.read_writeB\xA6\x02\x0A\x1Dcom.google.storage.control.v2B\x13StorageControlProtoP\x01Z=cloud.google.com/go/storage/control/apiv2/controlpb;controlpb\xAA\x02\x1FGoogle.Cloud.Storage.Control.V2\xCA\x02\x1FGoogle\\Cloud\\Storage\\Control\\V2\xEA\x02#Google::Cloud::Storage::Control::V2\xEAAD\x0A\x1Dstorage.googleapis.com/Bucket\x12#projects/{project}/buckets/{bucket}b\x06proto3" + "\x0A\xC4\xE2\x01\x0A/google/storage/control/v2/storage_control.proto\x12\x19google.storage.control.v2\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A\x18google/api/routing.proto\x1A\x1Egoogle/iam/v1/iam_policy.proto\x1A\x1Agoogle/iam/v1/policy.proto\x1A#google/longrunning/operations.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\x1A\x1Agoogle/type/interval.proto\"+\x0A\x11PendingRenameInfo\x12\x16\x0A\x09operation\x18\x01 \x01(\x09B\x03\xE0A\x03\"\xE2\x02\x0A\x06Folder\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1B\x0A\x0Emetageneration\x18\x03 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12N\x0A\x13pending_rename_info\x18\x07 \x01(\x0B2,.google.storage.control.v2.PendingRenameInfoB\x03\xE0A\x03:l\xEAAi\x0A\x1Dstorage.googleapis.com/Folder\x127projects/{project}/buckets/{bucket}/folders/{folder=**}*\x07folders2\x06folder\"\xF4\x01\x0A\x10GetFolderRequest\x123\x0A\x04name\x18\x06 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Folder\x12\$\x0A\x17if_metageneration_match\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\xD5\x01\x0A\x13CreateFolderRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Dstorage.googleapis.com/Folder\x126\x0A\x06folder\x18\x02 \x01(\x0B2!.google.storage.control.v2.FolderB\x03\xE0A\x02\x12\x16\x0A\x09folder_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09recursive\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xF7\x01\x0A\x13DeleteFolderRequest\x123\x0A\x04name\x18\x06 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Folder\x12\$\x0A\x17if_metageneration_match\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\x8C\x02\x0A\x12ListFoldersRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Dstorage.googleapis.com/Folder\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06prefix\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09delimiter\x18\x08 \x01(\x09B\x03\xE0A\x01\x12 \x0A\x13lexicographic_start\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11lexicographic_end\x18\x07 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x0Arequest_id\x18\x09 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"b\x0A\x13ListFoldersResponse\x122\x0A\x07folders\x18\x01 \x03(\x0B2!.google.storage.control.v2.Folder\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x9B\x02\x0A\x13RenameFolderRequest\x123\x0A\x04name\x18\x07 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Folder\x12\"\x0A\x15destination_folder_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\$\x0A\x17if_metageneration_match\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x05 \x01(\x03H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x06 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\x8A\x02\x0A\x1CDeleteFolderRecursiveRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Folder\x12)\x0A\x17if_metageneration_match\x18\x02 \x01(\x03B\x03\xE0A\x01H\x00\x88\x01\x01\x12-\x0A\x1Bif_metageneration_not_match\x18\x03 \x01(\x03B\x03\xE0A\x01H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\x9A\x02\x0A\"CommonLongRunningOperationMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04type\x18\x04 \x01(\x09B\x03\xE0A\x03\x12#\x0A\x16requested_cancellation\x18\x05 \x01(\x08B\x03\xE0A\x03\x12\x1D\x0A\x10progress_percent\x18\x06 \x01(\x05B\x03\xE0A\x03\"\xA7\x01\x0A\x14RenameFolderMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x18\x0A\x10source_folder_id\x18\x02 \x01(\x09\x12\x1D\x0A\x15destination_folder_id\x18\x03 \x01(\x09\"\x8A\x01\x0A\x1DDeleteFolderRecursiveMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x11\x0A\x09folder_id\x18\x02 \x01(\x09\"\xF8\x03\x0A\x0DStorageLayout\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x15\x0A\x08location\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x1A\x0A\x0Dlocation_type\x18\x03 \x01(\x09B\x03\xE0A\x03\x12d\x0A\x17custom_placement_config\x18\x04 \x01(\x0B2>.google.storage.control.v2.StorageLayout.CustomPlacementConfigB\x03\xE0A\x03\x12c\x0A\x16hierarchical_namespace\x18\x05 \x01(\x0B2>.google.storage.control.v2.StorageLayout.HierarchicalNamespaceB\x03\xE0A\x03\x1A/\x0A\x15CustomPlacementConfig\x12\x16\x0A\x0Edata_locations\x18\x01 \x03(\x09\x1A(\x0A\x15HierarchicalNamespace\x12\x0F\x0A\x07enabled\x18\x01 \x01(\x08:{\xEAAx\x0A\$storage.googleapis.com/StorageLayout\x121projects/{project}/buckets/{bucket}/storageLayout*\x0EstorageLayouts2\x0DstorageLayout\"\x86\x01\x0A\x17GetStorageLayoutRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/StorageLayout\x12\x0E\x0A\x06prefix\x18\x02 \x01(\x09\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\x9D\x07\x0A\x0DManagedFolder\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1B\x0A\x0Emetageneration\x18\x03 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12Z\x0A\x12rapid_cache_config\x18\x06 \x01(\x0B29.google.storage.control.v2.ManagedFolder.RapidCacheConfigH\x00\x88\x01\x01\x1A\xE8\x03\x0A\x10RapidCacheConfig\x12^\x0A\x08policies\x18\x01 \x03(\x0B2G.google.storage.control.v2.ManagedFolder.RapidCacheConfig.PoliciesEntryB\x03\xE0A\x01\x1A\xF6\x01\x0A\x10RapidCachePolicy\x12\x1B\x0A\x0Erapid_cache_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12v\x0A\x0Fingest_on_write\x18\x02 \x01(\x0E2X.google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy.IngestOnWriteB\x03\xE0A\x02\"M\x0A\x0DIngestOnWrite\x12\x1F\x0A\x1BINGEST_ON_WRITE_UNSPECIFIED\x10\x00\x12\x1B\x0A\x17INGEST_ON_WRITE_ENABLED\x10\x01\x1A{\x0A\x0DPoliciesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12Y\x0A\x05value\x18\x02 \x01(\x0B2J.google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy:\x028\x01:\x91\x01\xEAA\x8D\x01\x0A\$storage.googleapis.com/ManagedFolder\x12Fprojects/{project}/buckets/{bucket}/managedFolders/{managed_folder=**}*\x0EmanagedFolders2\x0DmanagedFolderB\x15\x0A\x13_rapid_cache_config\"\x82\x02\x0A\x17GetManagedFolderRequest\x12:\x0A\x04name\x18\x06 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/ManagedFolder\x12\$\x0A\x17if_metageneration_match\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\xE2\x01\x0A\x1ACreateManagedFolderRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$storage.googleapis.com/ManagedFolder\x12E\x0A\x0Emanaged_folder\x18\x02 \x01(\x0B2(.google.storage.control.v2.ManagedFolderB\x03\xE0A\x02\x12\x1E\x0A\x11managed_folder_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\x9E\x02\x0A\x1ADeleteManagedFolderRequest\x12:\x0A\x04name\x18\x07 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/ManagedFolder\x12\$\x0A\x17if_metageneration_match\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03H\x01\x88\x01\x01\x12\x17\x0A\x0Fallow_non_empty\x18\x05 \x01(\x08\x12\x1F\x0A\x0Arequest_id\x18\x06 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\xC0\x01\x0A\x19ListManagedFoldersRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$storage.googleapis.com/ManagedFolder\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06prefix\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"x\x0A\x1AListManagedFoldersResponse\x12A\x0A\x0Fmanaged_folders\x18\x01 \x03(\x0B2(.google.storage.control.v2.ManagedFolder\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xD0\x02\x0A\x1AUpdateManagedFolderRequest\x12E\x0A\x0Emanaged_folder\x18\x01 \x01(\x0B2(.google.storage.control.v2.ManagedFolderB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12)\x0A\x17if_metageneration_match\x18\x03 \x01(\x03B\x03\xE0A\x01H\x00\x88\x01\x01\x12-\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03B\x03\xE0A\x01H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\xE7\x02\x0A\x1BCreateAnywhereCacheMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x1E\x0A\x11anywhere_cache_id\x18\x02 \x01(\x09H\x00\x88\x01\x01\x12\x11\x0A\x04zone\x18\x06 \x01(\x09H\x01\x88\x01\x01\x12+\x0A\x03ttl\x18\x03 \x01(\x0B2\x19.google.protobuf.DurationH\x02\x88\x01\x01\x12\x1D\x0A\x10admission_policy\x18\x05 \x01(\x09H\x03\x88\x01\x01\x12!\x0A\x0Fingest_on_write\x18\x07 \x01(\x08B\x03\xE0A\x01H\x04\x88\x01\x01B\x14\x0A\x12_anywhere_cache_idB\x07\x0A\x05_zoneB\x06\x0A\x04_ttlB\x13\x0A\x11_admission_policyB\x12\x0A\x10_ingest_on_write\"\x8B\x03\x0A\x18CreateRapidCacheMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x1B\x0A\x0Erapid_cache_id\x18\x02 \x01(\x09H\x00\x88\x01\x01\x12\x11\x0A\x04zone\x18\x03 \x01(\x09H\x01\x88\x01\x01\x12+\x0A\x03ttl\x18\x04 \x01(\x0B2\x19.google.protobuf.DurationH\x02\x88\x01\x01\x12\x1D\x0A\x10admission_policy\x18\x05 \x01(\x09H\x03\x88\x01\x01\x12!\x0A\x0Fingest_on_write\x18\x06 \x01(\x08B\x03\xE0A\x01H\x04\x88\x01\x01\x12\x1C\x0A\x0Acache_type\x18\x07 \x01(\x09B\x03\xE0A\x01H\x05\x88\x01\x01B\x11\x0A\x0F_rapid_cache_idB\x07\x0A\x05_zoneB\x06\x0A\x04_ttlB\x13\x0A\x11_admission_policyB\x12\x0A\x10_ingest_on_writeB\x0D\x0A\x0B_cache_type\"\xE7\x02\x0A\x1BUpdateAnywhereCacheMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x1E\x0A\x11anywhere_cache_id\x18\x02 \x01(\x09H\x00\x88\x01\x01\x12\x11\x0A\x04zone\x18\x05 \x01(\x09H\x01\x88\x01\x01\x12+\x0A\x03ttl\x18\x03 \x01(\x0B2\x19.google.protobuf.DurationH\x02\x88\x01\x01\x12\"\x0A\x10admission_policy\x18\x04 \x01(\x09B\x03\xE0A\x01H\x03\x88\x01\x01\x12\x1C\x0A\x0Fingest_on_write\x18\x06 \x01(\x08H\x04\x88\x01\x01B\x14\x0A\x12_anywhere_cache_idB\x07\x0A\x05_zoneB\x06\x0A\x04_ttlB\x13\x0A\x11_admission_policyB\x12\x0A\x10_ingest_on_write\"\x8B\x03\x0A\x18UpdateRapidCacheMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x1B\x0A\x0Erapid_cache_id\x18\x02 \x01(\x09H\x00\x88\x01\x01\x12\x11\x0A\x04zone\x18\x03 \x01(\x09H\x01\x88\x01\x01\x12+\x0A\x03ttl\x18\x04 \x01(\x0B2\x19.google.protobuf.DurationH\x02\x88\x01\x01\x12\"\x0A\x10admission_policy\x18\x05 \x01(\x09B\x03\xE0A\x01H\x03\x88\x01\x01\x12\x1C\x0A\x0Fingest_on_write\x18\x06 \x01(\x08H\x04\x88\x01\x01\x12\x1C\x0A\x0Acache_type\x18\x07 \x01(\x09B\x03\xE0A\x01H\x05\x88\x01\x01B\x11\x0A\x0F_rapid_cache_idB\x07\x0A\x05_zoneB\x06\x0A\x04_ttlB\x13\x0A\x11_admission_policyB\x12\x0A\x10_ingest_on_writeB\x0D\x0A\x0B_cache_type\"\xDC\x03\x0A\x0DAnywhereCache\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x05\x12\x11\x0A\x04zone\x18\x0A \x01(\x09B\x03\xE0A\x05\x12&\x0A\x03ttl\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x12\x18\x0A\x10admission_policy\x18\x09 \x01(\x09\x12\x12\x0A\x05state\x18\x05 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1B\x0A\x0Epending_update\x18\x08 \x01(\x08B\x03\xE0A\x03\x12!\x0A\x0Fingest_on_write\x18\x0B \x01(\x08B\x03\xE0A\x01H\x00\x88\x01\x01:\x8E\x01\xEAA\x8A\x01\x0A\$storage.googleapis.com/AnywhereCache\x12Cprojects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}*\x0EanywhereCaches2\x0DanywhereCacheB\x12\x0A\x10_ingest_on_write\"\xC2\x01\x0A\x1ACreateAnywhereCacheRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$storage.googleapis.com/AnywhereCache\x12E\x0A\x0Eanywhere_cache\x18\x03 \x01(\x0B2(.google.storage.control.v2.AnywhereCacheB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xBA\x01\x0A\x1AUpdateAnywhereCacheRequest\x12E\x0A\x0Eanywhere_cache\x18\x01 \x01(\x0B2(.google.storage.control.v2.AnywhereCacheB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"z\x0A\x1BDisableAnywhereCacheRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/AnywhereCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"x\x0A\x19PauseAnywhereCacheRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/AnywhereCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"y\x0A\x1AResumeAnywhereCacheRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/AnywhereCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"v\x0A\x17GetAnywhereCacheRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/AnywhereCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xA1\x01\x0A\x19ListAnywhereCachesRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$storage.googleapis.com/AnywhereCache\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"x\x0A\x1AListAnywhereCachesResponse\x12A\x0A\x0Fanywhere_caches\x18\x01 \x03(\x0B2(.google.storage.control.v2.AnywhereCache\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xAA\x03\x0A\x0ARapidCache\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x05\x12\x11\x0A\x04zone\x18\x02 \x01(\x09B\x03\xE0A\x05\x12\x17\x0A\x0Acache_type\x18\x03 \x01(\x09B\x03\xE0A\x05\x12&\x0A\x03ttl\x18\x04 \x01(\x0B2\x19.google.protobuf.Duration\x12\x18\x0A\x10admission_policy\x18\x05 \x01(\x09\x12\x12\x0A\x05state\x18\x06 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1B\x0A\x0Epending_update\x18\x09 \x01(\x08B\x03\xE0A\x03:~\xEAA{\x0A!storage.googleapis.com/RapidCache\x12=projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}*\x0BrapidCaches2\x0ArapidCache\"\xB6\x01\x0A\x17CreateRapidCacheRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x12!storage.googleapis.com/RapidCache\x12?\x0A\x0Brapid_cache\x18\x02 \x01(\x0B2%.google.storage.control.v2.RapidCacheB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xB1\x01\x0A\x17UpdateRapidCacheRequest\x12?\x0A\x0Brapid_cache\x18\x01 \x01(\x0B2%.google.storage.control.v2.RapidCacheB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"p\x0A\x14GetRapidCacheRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!storage.googleapis.com/RapidCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\x9B\x01\x0A\x16ListRapidCachesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x12!storage.googleapis.com/RapidCache\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"o\x0A\x17ListRapidCachesResponse\x12;\x0A\x0Crapid_caches\x18\x01 \x03(\x0B2%.google.storage.control.v2.RapidCache\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x9E\x0E\x0A\x12IntelligenceConfig\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12X\x0A\x0Eedition_config\x18\x02 \x01(\x0E2;.google.storage.control.v2.IntelligenceConfig.EditionConfigB\x03\xE0A\x01\x124\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12I\x0A\x06filter\x18\x04 \x01(\x0B24.google.storage.control.v2.IntelligenceConfig.FilterB\x03\xE0A\x01\x12u\x0A\x1Deffective_intelligence_config\x18\x05 \x01(\x0B2I.google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfigB\x03\xE0A\x03\x12O\x0A\x0Ctrial_config\x18\x07 \x01(\x0B29.google.storage.control.v2.IntelligenceConfig.TrialConfig\x1A\xFC\x04\x0A\x06Filter\x12v\x0A included_cloud_storage_locations\x18\x01 \x01(\x0B2J.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocationsH\x00\x12v\x0A excluded_cloud_storage_locations\x18\x02 \x01(\x0B2J.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocationsH\x00\x12r\x0A\x1Eincluded_cloud_storage_buckets\x18\x03 \x01(\x0B2H.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBucketsH\x01\x12r\x0A\x1Eexcluded_cloud_storage_buckets\x18\x04 \x01(\x0B2H.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBucketsH\x01\x1A/\x0A\x15CloudStorageLocations\x12\x16\x0A\x09locations\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A5\x0A\x13CloudStorageBuckets\x12\x1E\x0A\x11bucket_id_regexes\x18\x01 \x03(\x09B\x03\xE0A\x01B\x19\x0A\x17cloud_storage_locationsB\x17\x0A\x15cloud_storage_buckets\x1A\x8A\x02\x0A\x1BEffectiveIntelligenceConfig\x12z\x0A\x11effective_edition\x18\x01 \x01(\x0E2Z.google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEditionB\x03\xE0A\x03\x12 \x0A\x13intelligence_config\x18\x02 \x01(\x09B\x03\xE0A\x03\"M\x0A\x10EffectiveEdition\x12!\x0A\x1DEFFECTIVE_EDITION_UNSPECIFIED\x10\x00\x12\x08\x0A\x04NONE\x10\x01\x12\x0C\x0A\x08STANDARD\x10\x02\x1AC\x0A\x0BTrialConfig\x124\x0A\x0Bexpire_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\"s\x0A\x0DEditionConfig\x12\x1E\x0A\x1AEDITION_CONFIG_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07INHERIT\x10\x01\x12\x0C\x0A\x08DISABLED\x10\x02\x12\x0C\x0A\x08STANDARD\x10\x03\x12\x09\x0A\x05TRIAL\x10\x05\x12\x0E\x0A\x0AESSENTIALS\x10\x06:\x8B\x02\xEAA\x87\x02\x0A)storage.googleapis.com/IntelligenceConfig\x128folders/{folder}/locations/{location}/intelligenceConfig\x12;organizations/{org}/locations/{location}/intelligenceConfig\x12:projects/{project}/locations/{location}/intelligenceConfig*\x13intelligenceConfigs2\x12intelligenceConfig\"\xD5\x01\x0A+UpdateOrganizationIntelligenceConfigRequest\x12O\x0A\x13intelligence_config\x18\x01 \x01(\x0B2-.google.storage.control.v2.IntelligenceConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xCF\x01\x0A%UpdateFolderIntelligenceConfigRequest\x12O\x0A\x13intelligence_config\x18\x01 \x01(\x0B2-.google.storage.control.v2.IntelligenceConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xD0\x01\x0A&UpdateProjectIntelligenceConfigRequest\x12O\x0A\x13intelligence_config\x18\x01 \x01(\x0B2-.google.storage.control.v2.IntelligenceConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"k\x0A(GetOrganizationIntelligenceConfigRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)storage.googleapis.com/IntelligenceConfig\"e\x0A\"GetFolderIntelligenceConfigRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)storage.googleapis.com/IntelligenceConfig\"f\x0A#GetProjectIntelligenceConfigRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)storage.googleapis.com/IntelligenceConfig\"\xBE \x0A\x13IntelligenceFinding\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x03\x129\x0A\x04type\x18\x03 \x01(\x0E2&.google.storage.control.v2.FindingTypeB\x03\xE0A\x03\x12A\x0A\x08category\x18\x04 \x01(\x0E2*.google.storage.control.v2.FindingCategoryB\x03\xE0A\x03\x12A\x0A\x08severity\x18\x05 \x01(\x0E2*.google.storage.control.v2.FindingSeverityB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1C\x0A\x0Ftarget_resource\x18\x08 \x01(\x09B\x03\xE0A\x03\x12!\x0A\x14associated_resources\x18\x09 \x03(\x09B\x03\xE0A\x03\x126\x0A\x12observation_period\x18\x0A \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12\x97\x01\x0A.coldline_and_archival_storage_operations_spike\x18\x0B \x01(\x0B2X.google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpikeB\x03\xE0A\x03H\x00\x12m\x0A\x18throttled_requests_spike\x18\x0C \x01(\x0B2D.google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpikeB\x03\xE0A\x03H\x00\x12o\x0A\x19cross_region_egress_spike\x18\x0D \x01(\x0B2E.google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpikeB\x03\xE0A\x03H\x00\x12q\x0A\x1Astorage_growth_above_trend\x18\x0E \x01(\x0B2F.google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrendB\x03\xE0A\x03H\x00\x1A\x89\x07\x0A)ColdlineAndArchivalStorageOperationsSpike\x12 \x0A\x13percentage_increase\x18\x01 \x01(\x01B\x03\xE0A\x03\x12#\x0A\x16total_operations_count\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x85\x01\x0A\x0Btop_buckets\x18\x03 \x03(\x0B2k.google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContributionB\x03\xE0A\x03\x1A\x8C\x05\x0A\x12BucketContribution\x125\x0A\x06bucket\x18\x01 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Bucket\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12#\x0A\x16total_operations_count\x18\x03 \x01(\x03B\x03\xE0A\x03\x12\x95\x01\x0A\x0Ccontribution\x18\x04 \x01(\x0B2x.google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.ContributionB\x03\xE0A\x03H\x00\x12(\x0A\x05error\x18\x05 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03H\x00\x1A\xAA\x02\x0A\x0CContribution\x12\xA7\x01\x0A\x0Ctop_prefixes\x18\x01 \x03(\x0B2\x8B\x01.google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.Contribution.PrefixContributionB\x03\xE0A\x03\x1Ap\x0A\x12PrefixContribution\x12\x13\x0A\x06prefix\x18\x01 \x01(\x09B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12#\x0A\x16total_operations_count\x18\x03 \x01(\x03B\x03\xE0A\x03B\x09\x0A\x07details\x1A\xAF\x06\x0A\x16CrossRegionEgressSpike\x12\x1F\x0A\x12total_egress_bytes\x18\x01 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12r\x0A\x0Btop_buckets\x18\x03 \x03(\x0B2X.google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContributionB\x03\xE0A\x03\x1A\xDD\x04\x0A\x12BucketContribution\x125\x0A\x06bucket\x18\x01 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Bucket\x12\x1F\x0A\x12total_egress_bytes\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03\x12\x82\x01\x0A\x0Ccontribution\x18\x04 \x01(\x0B2e.google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.ContributionB\x03\xE0A\x03H\x00\x12(\x0A\x05error\x18\x05 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03H\x00\x1A\x92\x02\x0A\x0CContribution\x12\x93\x01\x0A\x0Ctop_prefixes\x18\x01 \x03(\x0B2x.google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution.PrefixContributionB\x03\xE0A\x03\x1Al\x0A\x12PrefixContribution\x12\x13\x0A\x06prefix\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x1F\x0A\x12total_egress_bytes\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03B\x09\x0A\x07details\x1A\xAB\x06\x0A\x15ThrottledRequestSpike\x12\x1F\x0A\x12throttled_requests\x18\x01 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12q\x0A\x0Btop_buckets\x18\x03 \x03(\x0B2W.google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContributionB\x03\xE0A\x03\x1A\xDB\x04\x0A\x12BucketContribution\x125\x0A\x06bucket\x18\x01 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Bucket\x12\x1F\x0A\x12throttled_requests\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03\x12\x81\x01\x0A\x0Ccontribution\x18\x04 \x01(\x0B2d.google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.ContributionB\x03\xE0A\x03H\x00\x12(\x0A\x05error\x18\x05 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03H\x00\x1A\x91\x02\x0A\x0CContribution\x12\x92\x01\x0A\x0Ctop_prefixes\x18\x01 \x03(\x0B2w.google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution.PrefixContributionB\x03\xE0A\x03\x1Al\x0A\x12PrefixContribution\x12\x13\x0A\x06prefix\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x1F\x0A\x12throttled_requests\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03B\x09\x0A\x07details\x1A\xA7\x03\x0A\x17StorageGrowthAboveTrend\x12'\x0A\x1Atotal_storage_growth_bytes\x18\x01 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12s\x0A\x0Btop_buckets\x18\x03 \x03(\x0B2Y.google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrend.BucketContributionB\x03\xE0A\x03\x1A\xCB\x01\x0A\x12BucketContribution\x125\x0A\x06bucket\x18\x01 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Bucket\x12'\x0A\x1Atotal_storage_growth_bytes\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03\x12(\x0A\x05error\x18\x05 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03H\x00B\x09\x0A\x07details:\xB0\x01\xEAA\xAC\x01\x0A*storage.googleapis.com/IntelligenceFinding\x12Sprojects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}*\x14intelligenceFindings2\x13intelligenceFindingB\x1E\x0A\x1Cintelligence_finding_details\"\x8D\x03\x0A\x1BIntelligenceFindingRevision\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12E\x0A\x08snapshot\x18\x02 \x01(\x0B2..google.storage.control.v2.IntelligenceFindingB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03:\xDD\x01\xEAA\xD9\x01\x0A2storage.googleapis.com/IntelligenceFindingRevision\x12hprojects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}*\x1CintelligenceFindingRevisions2\x1BintelligenceFindingRevision\"a\x0A\x1DGetIntelligenceFindingRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*storage.googleapis.com/IntelligenceFinding\"\xAB\x01\x0A\x1FListIntelligenceFindingsRequest\x12B\x0A\x06parent\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x12*storage.googleapis.com/IntelligenceFinding\x12\x13\x0A\x06filter\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x8A\x01\x0A ListIntelligenceFindingsResponse\x12M\x0A\x15intelligence_findings\x18\x01 \x03(\x0B2..google.storage.control.v2.IntelligenceFinding\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xB7\x02\x0A\$SummarizeIntelligenceFindingsRequest\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12j\x0A\x0Eresource_scope\x18\x02 \x01(\x0E2M.google.storage.control.v2.SummarizeIntelligenceFindingsRequest.ResourceScopeB\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x04 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"H\x0A\x0DResourceScope\x12\x1E\x0A\x1ARESOURCE_SCOPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06PARENT\x10\x01\x12\x0B\x0A\x07PROJECT\x10\x02\"\x86\x01\x0A%SummarizeIntelligenceFindingsResponse\x12D\x0A\x11finding_summaries\x18\x01 \x03(\x0B2).google.storage.control.v2.FindingSummary\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"q\x0A%GetIntelligenceFindingRevisionRequest\x12H\x0A\x04name\x18\x01 \x01(\x09B:\xE0A\x02\xFAA4\x0A2storage.googleapis.com/IntelligenceFindingRevision\"\xA6\x01\x0A'ListIntelligenceFindingRevisionsRequest\x12J\x0A\x06parent\x18\x01 \x01(\x09B:\xE0A\x02\xFAA4\x122storage.googleapis.com/IntelligenceFindingRevision\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xA3\x01\x0A(ListIntelligenceFindingRevisionsResponse\x12^\x0A\x1Eintelligence_finding_revisions\x18\x01 \x03(\x0B26.google.storage.control.v2.IntelligenceFindingRevision\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xBA\x05\x0A\x0EFindingSummary\x129\x0A\x04type\x18\x01 \x01(\x0E2&.google.storage.control.v2.FindingTypeB\x03\xE0A\x03\x12A\x0A\x08category\x18\x02 \x01(\x0E2*.google.storage.control.v2.FindingCategoryB\x03\xE0A\x03\x12\x1C\x0A\x0Ftarget_resource\x18\x04 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12<\x0A\x08severity\x18\x07 \x01(\x0E2*.google.storage.control.v2.FindingSeverity\x12V\x0A\x0Fsummary_details\x18\x08 \x03(\x0B28.google.storage.control.v2.FindingSummary.SummaryDetailsB\x03\xE0A\x03\x1A\x89\x02\x0A\x0ESummaryDetails\x12\x0F\x0A\x05count\x18\x01 \x01(\x03H\x00\x12\x14\x0A\x0Apercentage\x18\x02 \x01(\x02H\x00\x12a\x0A\x0Dresource_type\x18\x03 \x01(\x0E2E.google.storage.control.v2.FindingSummary.SummaryDetails.ResourceTypeB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x03\"F\x0A\x0CResourceType\x12\x1D\x0A\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PROJECT\x10\x01\x12\x0A\x0A\x06BUCKET\x10\x02B\x0B\x0A\x09magnitude*\xEF\x01\x0A\x0BFindingType\x12\x1C\x0A\x18FINDING_TYPE_UNSPECIFIED\x10\x00\x12?\x0A;FINDING_TYPE_COLDLINE_AND_ARCHIVAL_STORAGE_OPERATIONS_SPIKE\x10\x01\x12(\x0A\$FINDING_TYPE_THROTTLED_REQUEST_SPIKE\x10\x02\x12*\x0A&FINDING_TYPE_CROSS_REGION_EGRESS_SPIKE\x10\x03\x12+\x0A'FINDING_TYPE_STORAGE_GROWTH_ABOVE_TREND\x10\x04*{\x0A\x0FFindingCategory\x12 \x0A\x1CFINDING_CATEGORY_UNSPECIFIED\x10\x00\x12\$\x0A FINDING_CATEGORY_DATA_MANAGEMENT\x10\x01\x12 \x0A\x1CFINDING_CATEGORY_PERFORMANCE\x10\x02*R\x0A\x0FFindingSeverity\x12 \x0A\x1CFINDING_SEVERITY_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19FINDING_SEVERITY_CRITICAL\x10\x012\xD5A\x0A\x0EStorageControl\x12\xD3\x01\x0A\x0CCreateFolder\x12..google.storage.control.v2.CreateFolderRequest\x1A!.google.storage.control.v2.Folder\"p\xDAA\x17parent,folder,folder_id\x82\xD3\xE4\x93\x023\")/v2/{parent=projects/*/buckets/*}/folders:\x06folder\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xC1\x01\x0A\x0CDeleteFolder\x12..google.storage.control.v2.DeleteFolderRequest\x1A\x16.google.protobuf.Empty\"i\xDAA\x04name\x82\xD3\xE4\x93\x02,**/v2/{name=projects/*/buckets/*/folders/**}\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xC6\x01\x0A\x09GetFolder\x12+.google.storage.control.v2.GetFolderRequest\x1A!.google.storage.control.v2.Folder\"i\xDAA\x04name\x82\xD3\xE4\x93\x02,\x12*/v2/{name=projects/*/buckets/*/folders/**}\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xC5\x01\x0A\x0BListFolders\x12-.google.storage.control.v2.ListFoldersRequest\x1A..google.storage.control.v2.ListFoldersResponse\"W\xDAA\x06parent\x82\xD3\xE4\x93\x02+\x12)/v2/{parent=projects/*/buckets/*}/folders\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\x8A\x02\x0A\x0CRenameFolder\x12..google.storage.control.v2.RenameFolderRequest\x1A\x1D.google.longrunning.Operation\"\xAA\x01\xCAA\x1E\x0A\x06Folder\x12\x14RenameFolderMetadata\xDAA\x1Aname,destination_folder_id\x82\xD3\xE4\x93\x026\"1/v2/{name=projects/*/buckets/*/folders/**}:rename:\x01*\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA7\x02\x0A\x15DeleteFolderRecursive\x127.google.storage.control.v2.DeleteFolderRecursiveRequest\x1A\x1D.google.longrunning.Operation\"\xB5\x01\xCAA6\x0A\x15google.protobuf.Empty\x12\x1DDeleteFolderRecursiveMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02?\":/v2/{name=projects/*/buckets/*/folders/**}:deleteRecursive:\x01*\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xDE\x01\x0A\x10GetStorageLayout\x122.google.storage.control.v2.GetStorageLayoutRequest\x1A(.google.storage.control.v2.StorageLayout\"l\xDAA\x04name\x82\xD3\xE4\x93\x02/\x12-/v2/{name=projects/*/buckets/*/storageLayout}\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xBF\x01\x0A\x13CreateManagedFolder\x125.google.storage.control.v2.CreateManagedFolderRequest\x1A(.google.storage.control.v2.ManagedFolder\"G\xDAA'parent,managed_folder,managed_folder_id\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\x9D\x01\x0A\x13DeleteManagedFolder\x125.google.storage.control.v2.DeleteManagedFolderRequest\x1A\x16.google.protobuf.Empty\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA9\x01\x0A\x10GetManagedFolder\x122.google.storage.control.v2.GetManagedFolderRequest\x1A(.google.storage.control.v2.ManagedFolder\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA9\x01\x0A\x12ListManagedFolders\x124.google.storage.control.v2.ListManagedFoldersRequest\x1A5.google.storage.control.v2.ListManagedFoldersResponse\"&\xDAA\x06parent\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xD4\x01\x0A\x13UpdateManagedFolder\x125.google.storage.control.v2.UpdateManagedFolderRequest\x1A(.google.storage.control.v2.ManagedFolder\"\\\xDAA\x1Amanaged_folder,update_mask\x8A\xD3\xE4\x93\x029\x127\x0A\x13managed_folder.name\x12 {bucket=projects/*/buckets/*}/**\x12\xD1\x01\x0A\x13CreateAnywhereCache\x125.google.storage.control.v2.CreateAnywhereCacheRequest\x1A\x1D.google.longrunning.Operation\"d\xCAA,\x0A\x0DAnywhereCache\x12\x1BCreateAnywhereCacheMetadata\xDAA\x15parent,anywhere_cache\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xF9\x01\x0A\x13UpdateAnywhereCache\x125.google.storage.control.v2.UpdateAnywhereCacheRequest\x1A\x1D.google.longrunning.Operation\"\x8B\x01\xCAA,\x0A\x0DAnywhereCache\x12\x1BUpdateAnywhereCacheMetadata\xDAA\x1Aanywhere_cache,update_mask\x8A\xD3\xE4\x93\x029\x127\x0A\x13anywhere_cache.name\x12 {bucket=projects/*/buckets/*}/**\x12\xB1\x01\x0A\x14DisableAnywhereCache\x126.google.storage.control.v2.DisableAnywhereCacheRequest\x1A(.google.storage.control.v2.AnywhereCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xAD\x01\x0A\x12PauseAnywhereCache\x124.google.storage.control.v2.PauseAnywhereCacheRequest\x1A(.google.storage.control.v2.AnywhereCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xAF\x01\x0A\x13ResumeAnywhereCache\x125.google.storage.control.v2.ResumeAnywhereCacheRequest\x1A(.google.storage.control.v2.AnywhereCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA9\x01\x0A\x10GetAnywhereCache\x122.google.storage.control.v2.GetAnywhereCacheRequest\x1A(.google.storage.control.v2.AnywhereCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA9\x01\x0A\x12ListAnywhereCaches\x124.google.storage.control.v2.ListAnywhereCachesRequest\x1A5.google.storage.control.v2.ListAnywhereCachesResponse\"&\xDAA\x06parent\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xC2\x01\x0A\x10CreateRapidCache\x122.google.storage.control.v2.CreateRapidCacheRequest\x1A\x1D.google.longrunning.Operation\"[\xCAA&\x0A\x0ARapidCache\x12\x18CreateRapidCacheMetadata\xDAA\x12parent,rapid_cache\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xE6\x01\x0A\x10UpdateRapidCache\x122.google.storage.control.v2.UpdateRapidCacheRequest\x1A\x1D.google.longrunning.Operation\"\x7F\xCAA&\x0A\x0ARapidCache\x12\x18UpdateRapidCacheMetadata\xDAA\x17rapid_cache,update_mask\x8A\xD3\xE4\x93\x026\x124\x0A\x10rapid_cache.name\x12 {bucket=projects/*/buckets/*}/**\x12\xA0\x01\x0A\x0DGetRapidCache\x12/.google.storage.control.v2.GetRapidCacheRequest\x1A%.google.storage.control.v2.RapidCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA0\x01\x0A\x0FListRapidCaches\x121.google.storage.control.v2.ListRapidCachesRequest\x1A2.google.storage.control.v2.ListRapidCachesResponse\"&\xDAA\x06parent\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xD2\x01\x0A\x1CGetProjectIntelligenceConfig\x12>.google.storage.control.v2.GetProjectIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"C\xDAA\x04name\x82\xD3\xE4\x93\x026\x124/v2/{name=projects/*/locations/*/intelligenceConfig}\x12\x9D\x02\x0A\x1FUpdateProjectIntelligenceConfig\x12A.google.storage.control.v2.UpdateProjectIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"\x87\x01\xDAA\x1Fintelligence_config,update_mask\x82\xD3\xE4\x93\x02_2H/v2/{intelligence_config.name=projects/*/locations/*/intelligenceConfig}:\x13intelligence_config\x12\xCF\x01\x0A\x1BGetFolderIntelligenceConfig\x12=.google.storage.control.v2.GetFolderIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"B\xDAA\x04name\x82\xD3\xE4\x93\x025\x123/v2/{name=folders/*/locations/*/intelligenceConfig}\x12\x9A\x02\x0A\x1EUpdateFolderIntelligenceConfig\x12@.google.storage.control.v2.UpdateFolderIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"\x86\x01\xDAA\x1Fintelligence_config,update_mask\x82\xD3\xE4\x93\x02^2G/v2/{intelligence_config.name=folders/*/locations/*/intelligenceConfig}:\x13intelligence_config\x12\xE1\x01\x0A!GetOrganizationIntelligenceConfig\x12C.google.storage.control.v2.GetOrganizationIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"H\xDAA\x04name\x82\xD3\xE4\x93\x02;\x129/v2/{name=organizations/*/locations/*/intelligenceConfig}\x12\xAC\x02\x0A\$UpdateOrganizationIntelligenceConfig\x12F.google.storage.control.v2.UpdateOrganizationIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"\x8C\x01\xDAA\x1Fintelligence_config,update_mask\x82\xD3\xE4\x93\x02d2M/v2/{intelligence_config.name=organizations/*/locations/*/intelligenceConfig}:\x13intelligence_config\x12\xA3\x01\x0A\x0CGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"X\xDAA\x08resource\x8A\xD3\xE4\x93\x02G\x12\x17\x0A\x08resource\x12\x0B{bucket=**}\x12,\x0A\x08resource\x12 {bucket=projects/*/buckets/*}/**\x12\xAA\x01\x0A\x0CSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"_\xDAA\x0Fresource,policy\x8A\xD3\xE4\x93\x02G\x12\x17\x0A\x08resource\x12\x0B{bucket=**}\x12,\x0A\x08resource\x12 {bucket=projects/*/buckets/*}/**\x12\x96\x02\x0A\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1A).google.iam.v1.TestIamPermissionsResponse\"\xAA\x01\xDAA\x14resource,permissions\x8A\xD3\xE4\x93\x02\x8C\x01\x12\x17\x0A\x08resource\x12\x0B{bucket=**}\x124\x0A\x08resource\x12({bucket=projects/*/buckets/*}/objects/**\x12;\x0A\x08resource\x12/{bucket=projects/*/buckets/*}/managedFolders/**\x12\xCB\x01\x0A\x16GetIntelligenceFinding\x128.google.storage.control.v2.GetIntelligenceFindingRequest\x1A..google.storage.control.v2.IntelligenceFinding\"G\xDAA\x04name\x82\xD3\xE4\x93\x02:\x128/v2/{name=projects/*/locations/*/intelligenceFindings/*}\x12\xDE\x01\x0A\x18ListIntelligenceFindings\x12:.google.storage.control.v2.ListIntelligenceFindingsRequest\x1A;.google.storage.control.v2.ListIntelligenceFindingsResponse\"I\xDAA\x06parent\x82\xD3\xE4\x93\x02:\x128/v2/{parent=projects/*/locations/*}/intelligenceFindings\x12\x89\x03\x0A\x1DSummarizeIntelligenceFindings\x12?.google.storage.control.v2.SummarizeIntelligenceFindingsRequest\x1A@.google.storage.control.v2.SummarizeIntelligenceFindingsResponse\"\xE4\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xD4\x01\x12B/v2/{parent=projects/*/locations/*}/intelligenceFindings:summarizeZC\x12A/v2/{parent=folders/*/locations/*}/intelligenceFindings:summarizeZI\x12G/v2/{parent=organizations/*/locations/*}/intelligenceFindings:summarize\x12\xEF\x01\x0A\x1EGetIntelligenceFindingRevision\x12@.google.storage.control.v2.GetIntelligenceFindingRevisionRequest\x1A6.google.storage.control.v2.IntelligenceFindingRevision\"S\xDAA\x04name\x82\xD3\xE4\x93\x02F\x12D/v2/{name=projects/*/locations/*/intelligenceFindings/*/revisions/*}\x12\x82\x02\x0A ListIntelligenceFindingRevisions\x12B.google.storage.control.v2.ListIntelligenceFindingRevisionsRequest\x1AC.google.storage.control.v2.ListIntelligenceFindingRevisionsResponse\"U\xDAA\x06parent\x82\xD3\xE4\x93\x02F\x12D/v2/{parent=projects/*/locations/*/intelligenceFindings/*}/revisions\x1A\xA7\x02\xCAA\x16storage.googleapis.com\xD2A\x8A\x02https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/devstorage.full_control,https://www.googleapis.com/auth/devstorage.read_only,https://www.googleapis.com/auth/devstorage.read_writeB\xA6\x02\x0A\x1Dcom.google.storage.control.v2B\x13StorageControlProtoP\x01Z=cloud.google.com/go/storage/control/apiv2/controlpb;controlpb\xAA\x02\x1FGoogle.Cloud.Storage.Control.V2\xCA\x02\x1FGoogle\\Cloud\\Storage\\Control\\V2\xEA\x02#Google::Cloud::Storage::Control::V2\xEAAD\x0A\x1Dstorage.googleapis.com/Bucket\x12#projects/{project}/buckets/{bucket}b\x06proto3" , true); static::$is_initialized = true; diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_rapid_cache.php b/StorageControl/samples/V2/StorageControlClient/create_rapid_cache.php similarity index 100% rename from owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_rapid_cache.php rename to StorageControl/samples/V2/StorageControlClient/create_rapid_cache.php diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_rapid_cache.php b/StorageControl/samples/V2/StorageControlClient/get_rapid_cache.php similarity index 100% rename from owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_rapid_cache.php rename to StorageControl/samples/V2/StorageControlClient/get_rapid_cache.php diff --git a/StorageControl/samples/V2/StorageControlClient/list_intelligence_findings.php b/StorageControl/samples/V2/StorageControlClient/list_intelligence_findings.php index e6b1689b980a..e012eae9ecab 100644 --- a/StorageControl/samples/V2/StorageControlClient/list_intelligence_findings.php +++ b/StorageControl/samples/V2/StorageControlClient/list_intelligence_findings.php @@ -30,7 +30,7 @@ use Google\Cloud\Storage\Control\V2\ListIntelligenceFindingsRequest; /** - * Lists the `IntelligenceFinding` resources for the specified project. + * Lists the `IntelligenceFinding` resources for the specified the project. * * @param string $formattedParent The parent of the `IntelligenceFinding` resource. * diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_rapid_caches.php b/StorageControl/samples/V2/StorageControlClient/list_rapid_caches.php similarity index 100% rename from owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_rapid_caches.php rename to StorageControl/samples/V2/StorageControlClient/list_rapid_caches.php diff --git a/StorageControl/samples/V2/StorageControlClient/summarize_intelligence_findings.php b/StorageControl/samples/V2/StorageControlClient/summarize_intelligence_findings.php index 3acd1dd6de21..ebd78fc57516 100644 --- a/StorageControl/samples/V2/StorageControlClient/summarize_intelligence_findings.php +++ b/StorageControl/samples/V2/StorageControlClient/summarize_intelligence_findings.php @@ -30,8 +30,8 @@ use Google\Cloud\Storage\Control\V2\SummarizeIntelligenceFindingsRequest; /** - * Summarize the intelligence findings for the specified scope(org, folder or - * project). + * Summarizes the intelligence findings for the specified scope (organization, + * folder or project). * * @param string $parent The scope to summarize the findings for. * Format: diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_managed_folder.php b/StorageControl/samples/V2/StorageControlClient/update_managed_folder.php similarity index 100% rename from owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_managed_folder.php rename to StorageControl/samples/V2/StorageControlClient/update_managed_folder.php diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_rapid_cache.php b/StorageControl/samples/V2/StorageControlClient/update_rapid_cache.php similarity index 100% rename from owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_rapid_cache.php rename to StorageControl/samples/V2/StorageControlClient/update_rapid_cache.php diff --git a/StorageControl/src/V2/AnywhereCache.php b/StorageControl/src/V2/AnywhereCache.php index ac8817a20a8f..8e3334704463 100644 --- a/StorageControl/src/V2/AnywhereCache.php +++ b/StorageControl/src/V2/AnywhereCache.php @@ -49,7 +49,8 @@ class AnywhereCache extends \Google\Protobuf\Internal\Message */ protected $admission_policy = ''; /** - * Output only. Cache state including RUNNING, CREATING, DISABLED and PAUSED. + * Output only. Cache state including `running`, `creating`, `disabled` and + * `paused`. * * Generated from protobuf field string state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @@ -75,6 +76,13 @@ class AnywhereCache extends \Google\Protobuf\Internal\Message * Generated from protobuf field bool pending_update = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $pending_update = false; + /** + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ingest_on_write = null; /** * Constructor. @@ -100,7 +108,8 @@ class AnywhereCache extends \Google\Protobuf\Internal\Message * `admit-on-first-miss`. Default value is applied if not specified in the * create request. * @type string $state - * Output only. Cache state including RUNNING, CREATING, DISABLED and PAUSED. + * Output only. Cache state including `running`, `creating`, `disabled` and + * `paused`. * @type \Google\Protobuf\Timestamp $create_time * Output only. Time when Anywhere cache instance is allocated. * @type \Google\Protobuf\Timestamp $update_time @@ -110,6 +119,9 @@ class AnywhereCache extends \Google\Protobuf\Internal\Message * Output only. True if there is an active update operation against this cache * instance. Subsequential update requests will be rejected if this field is * true. Output only. + * @type bool $ingest_on_write + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. * } */ public function __construct($data = NULL) { @@ -250,7 +262,8 @@ public function setAdmissionPolicy($var) } /** - * Output only. Cache state including RUNNING, CREATING, DISABLED and PAUSED. + * Output only. Cache state including `running`, `creating`, `disabled` and + * `paused`. * * Generated from protobuf field string state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return string @@ -261,7 +274,8 @@ public function getState() } /** - * Output only. Cache state including RUNNING, CREATING, DISABLED and PAUSED. + * Output only. Cache state including `running`, `creating`, `disabled` and + * `paused`. * * Generated from protobuf field string state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param string $var @@ -379,5 +393,43 @@ public function setPendingUpdate($var) return $this; } + /** + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIngestOnWrite() + { + return isset($this->ingest_on_write) ? $this->ingest_on_write : false; + } + + public function hasIngestOnWrite() + { + return isset($this->ingest_on_write); + } + + public function clearIngestOnWrite() + { + unset($this->ingest_on_write); + } + + /** + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIngestOnWrite($var) + { + GPBUtil::checkBool($var); + $this->ingest_on_write = $var; + + return $this; + } + } diff --git a/StorageControl/src/V2/Client/StorageControlClient.php b/StorageControl/src/V2/Client/StorageControlClient.php index ad58f8a5045c..2d9dc76560a5 100644 --- a/StorageControl/src/V2/Client/StorageControlClient.php +++ b/StorageControl/src/V2/Client/StorageControlClient.php @@ -44,6 +44,7 @@ use Google\Cloud\Storage\Control\V2\CreateAnywhereCacheRequest; use Google\Cloud\Storage\Control\V2\CreateFolderRequest; use Google\Cloud\Storage\Control\V2\CreateManagedFolderRequest; +use Google\Cloud\Storage\Control\V2\CreateRapidCacheRequest; use Google\Cloud\Storage\Control\V2\DeleteFolderRecursiveRequest; use Google\Cloud\Storage\Control\V2\DeleteFolderRequest; use Google\Cloud\Storage\Control\V2\DeleteManagedFolderRequest; @@ -57,6 +58,7 @@ use Google\Cloud\Storage\Control\V2\GetManagedFolderRequest; use Google\Cloud\Storage\Control\V2\GetOrganizationIntelligenceConfigRequest; use Google\Cloud\Storage\Control\V2\GetProjectIntelligenceConfigRequest; +use Google\Cloud\Storage\Control\V2\GetRapidCacheRequest; use Google\Cloud\Storage\Control\V2\GetStorageLayoutRequest; use Google\Cloud\Storage\Control\V2\IntelligenceConfig; use Google\Cloud\Storage\Control\V2\IntelligenceFinding; @@ -66,16 +68,20 @@ use Google\Cloud\Storage\Control\V2\ListIntelligenceFindingRevisionsRequest; use Google\Cloud\Storage\Control\V2\ListIntelligenceFindingsRequest; use Google\Cloud\Storage\Control\V2\ListManagedFoldersRequest; +use Google\Cloud\Storage\Control\V2\ListRapidCachesRequest; use Google\Cloud\Storage\Control\V2\ManagedFolder; use Google\Cloud\Storage\Control\V2\PauseAnywhereCacheRequest; +use Google\Cloud\Storage\Control\V2\RapidCache; use Google\Cloud\Storage\Control\V2\RenameFolderRequest; use Google\Cloud\Storage\Control\V2\ResumeAnywhereCacheRequest; use Google\Cloud\Storage\Control\V2\StorageLayout; use Google\Cloud\Storage\Control\V2\SummarizeIntelligenceFindingsRequest; use Google\Cloud\Storage\Control\V2\UpdateAnywhereCacheRequest; use Google\Cloud\Storage\Control\V2\UpdateFolderIntelligenceConfigRequest; +use Google\Cloud\Storage\Control\V2\UpdateManagedFolderRequest; use Google\Cloud\Storage\Control\V2\UpdateOrganizationIntelligenceConfigRequest; use Google\Cloud\Storage\Control\V2\UpdateProjectIntelligenceConfigRequest; +use Google\Cloud\Storage\Control\V2\UpdateRapidCacheRequest; use Google\LongRunning\Client\OperationsClient; use Google\LongRunning\Operation; use GuzzleHttp\Promise\PromiseInterface; @@ -95,6 +101,7 @@ * @method PromiseInterface createAnywhereCacheAsync(CreateAnywhereCacheRequest $request, array $optionalArgs = []) * @method PromiseInterface createFolderAsync(CreateFolderRequest $request, array $optionalArgs = []) * @method PromiseInterface createManagedFolderAsync(CreateManagedFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface createRapidCacheAsync(CreateRapidCacheRequest $request, array $optionalArgs = []) * @method PromiseInterface deleteFolderAsync(DeleteFolderRequest $request, array $optionalArgs = []) * @method PromiseInterface deleteFolderRecursiveAsync(DeleteFolderRecursiveRequest $request, array $optionalArgs = []) * @method PromiseInterface deleteManagedFolderAsync(DeleteManagedFolderRequest $request, array $optionalArgs = []) @@ -108,12 +115,14 @@ * @method PromiseInterface getManagedFolderAsync(GetManagedFolderRequest $request, array $optionalArgs = []) * @method PromiseInterface getOrganizationIntelligenceConfigAsync(GetOrganizationIntelligenceConfigRequest $request, array $optionalArgs = []) * @method PromiseInterface getProjectIntelligenceConfigAsync(GetProjectIntelligenceConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRapidCacheAsync(GetRapidCacheRequest $request, array $optionalArgs = []) * @method PromiseInterface getStorageLayoutAsync(GetStorageLayoutRequest $request, array $optionalArgs = []) * @method PromiseInterface listAnywhereCachesAsync(ListAnywhereCachesRequest $request, array $optionalArgs = []) * @method PromiseInterface listFoldersAsync(ListFoldersRequest $request, array $optionalArgs = []) * @method PromiseInterface listIntelligenceFindingRevisionsAsync(ListIntelligenceFindingRevisionsRequest $request, array $optionalArgs = []) * @method PromiseInterface listIntelligenceFindingsAsync(ListIntelligenceFindingsRequest $request, array $optionalArgs = []) * @method PromiseInterface listManagedFoldersAsync(ListManagedFoldersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRapidCachesAsync(ListRapidCachesRequest $request, array $optionalArgs = []) * @method PromiseInterface pauseAnywhereCacheAsync(PauseAnywhereCacheRequest $request, array $optionalArgs = []) * @method PromiseInterface renameFolderAsync(RenameFolderRequest $request, array $optionalArgs = []) * @method PromiseInterface resumeAnywhereCacheAsync(ResumeAnywhereCacheRequest $request, array $optionalArgs = []) @@ -122,8 +131,10 @@ * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) * @method PromiseInterface updateAnywhereCacheAsync(UpdateAnywhereCacheRequest $request, array $optionalArgs = []) * @method PromiseInterface updateFolderIntelligenceConfigAsync(UpdateFolderIntelligenceConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateManagedFolderAsync(UpdateManagedFolderRequest $request, array $optionalArgs = []) * @method PromiseInterface updateOrganizationIntelligenceConfigAsync(UpdateOrganizationIntelligenceConfigRequest $request, array $optionalArgs = []) * @method PromiseInterface updateProjectIntelligenceConfigAsync(UpdateProjectIntelligenceConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateRapidCacheAsync(UpdateRapidCacheRequest $request, array $optionalArgs = []) */ final class StorageControlClient { @@ -433,6 +444,25 @@ public static function projectLocationIntelligenceConfigName(string $project, st ]); } + /** + * Formats a string containing the fully-qualified path to represent a rapid_cache + * resource. + * + * @param string $project + * @param string $bucket + * @param string $rapidCache + * + * @return string The formatted rapid_cache resource. + */ + public static function rapidCacheName(string $project, string $bucket, string $rapidCache): string + { + return self::getPathTemplate('rapidCache')->render([ + 'project' => $project, + 'bucket' => $bucket, + 'rapid_cache' => $rapidCache, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * storage_layout resource. @@ -465,6 +495,7 @@ public static function storageLayoutName(string $project, string $bucket): strin * - managedFolder: projects/{project}/buckets/{bucket}/managedFolders/{managed_folder=**} * - orgLocationIntelligenceConfig: organizations/{org}/locations/{location}/intelligenceConfig * - projectLocationIntelligenceConfig: projects/{project}/locations/{location}/intelligenceConfig + * - rapidCache: projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache} * - storageLayout: projects/{project}/buckets/{bucket}/storageLayout * * The optional $template argument can be supplied to specify a particular pattern, @@ -650,6 +681,32 @@ public function createManagedFolder(CreateManagedFolderRequest $request, array $ return $this->startApiCall('CreateManagedFolder', $request, $callOptions)->wait(); } + /** + * Creates a Rapid Cache instance. + * + * The async variant is {@see StorageControlClient::createRapidCacheAsync()} . + * + * @example samples/V2/StorageControlClient/create_rapid_cache.php + * + * @param CreateRapidCacheRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createRapidCache(CreateRapidCacheRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateRapidCache', $request, $callOptions)->wait(); + } + /** * Permanently deletes an empty folder. This operation is only applicable to a * hierarchical namespace enabled bucket. @@ -1011,6 +1068,32 @@ public function getProjectIntelligenceConfig( return $this->startApiCall('GetProjectIntelligenceConfig', $request, $callOptions)->wait(); } + /** + * Gets a Rapid Cache instance. + * + * The async variant is {@see StorageControlClient::getRapidCacheAsync()} . + * + * @example samples/V2/StorageControlClient/get_rapid_cache.php + * + * @param GetRapidCacheRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return RapidCache + * + * @throws ApiException Thrown if the API call fails. + */ + public function getRapidCache(GetRapidCacheRequest $request, array $callOptions = []): RapidCache + { + return $this->startApiCall('GetRapidCache', $request, $callOptions)->wait(); + } + /** * Returns the storage layout configuration for a given bucket. * @@ -1120,7 +1203,7 @@ public function listIntelligenceFindingRevisions( } /** - * Lists the `IntelligenceFinding` resources for the specified project. + * Lists the `IntelligenceFinding` resources for the specified the project. * * The async variant is * {@see StorageControlClient::listIntelligenceFindingsAsync()} . @@ -1174,6 +1257,32 @@ public function listManagedFolders(ListManagedFoldersRequest $request, array $ca return $this->startApiCall('ListManagedFolders', $request, $callOptions); } + /** + * Lists Rapid Cache instances for a given bucket. + * + * The async variant is {@see StorageControlClient::listRapidCachesAsync()} . + * + * @example samples/V2/StorageControlClient/list_rapid_caches.php + * + * @param ListRapidCachesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listRapidCaches(ListRapidCachesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListRapidCaches', $request, $callOptions); + } + /** * Pauses an Anywhere Cache instance. * @@ -1286,8 +1395,8 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = } /** - * Summarize the intelligence findings for the specified scope(org, folder or - * project). + * Summarizes the intelligence findings for the specified scope (organization, + * folder or project). * * The async variant is * {@see StorageControlClient::summarizeIntelligenceFindingsAsync()} . @@ -1405,6 +1514,33 @@ public function updateFolderIntelligenceConfig( return $this->startApiCall('UpdateFolderIntelligenceConfig', $request, $callOptions)->wait(); } + /** + * Updates a managed folder. Currently, this RPC only supports updating the + * `rapid_cache_config` field. + * + * The async variant is {@see StorageControlClient::updateManagedFolderAsync()} . + * + * @example samples/V2/StorageControlClient/update_managed_folder.php + * + * @param UpdateManagedFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ManagedFolder + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateManagedFolder(UpdateManagedFolderRequest $request, array $callOptions = []): ManagedFolder + { + return $this->startApiCall('UpdateManagedFolder', $request, $callOptions)->wait(); + } + /** * Updates the Organization scoped singleton IntelligenceConfig resource. * @@ -1462,4 +1598,30 @@ public function updateProjectIntelligenceConfig( ): IntelligenceConfig { return $this->startApiCall('UpdateProjectIntelligenceConfig', $request, $callOptions)->wait(); } + + /** + * Updates a Rapid Cache instance. + * + * The async variant is {@see StorageControlClient::updateRapidCacheAsync()} . + * + * @example samples/V2/StorageControlClient/update_rapid_cache.php + * + * @param UpdateRapidCacheRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateRapidCache(UpdateRapidCacheRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateRapidCache', $request, $callOptions)->wait(); + } } diff --git a/StorageControl/src/V2/CreateAnywhereCacheMetadata.php b/StorageControl/src/V2/CreateAnywhereCacheMetadata.php index a94539f02bb7..e821b04e5914 100644 --- a/StorageControl/src/V2/CreateAnywhereCacheMetadata.php +++ b/StorageControl/src/V2/CreateAnywhereCacheMetadata.php @@ -51,6 +51,13 @@ class CreateAnywhereCacheMetadata extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional string admission_policy = 5; */ protected $admission_policy = null; + /** + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ingest_on_write = null; /** * Constructor. @@ -73,6 +80,9 @@ class CreateAnywhereCacheMetadata extends \Google\Protobuf\Internal\Message * Anywhere Cache entry Admission Policy in kebab-case (e.g., * "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is * applied if not specified in the create request. + * @type bool $ingest_on_write + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. * } */ public function __construct($data = NULL) { @@ -270,5 +280,43 @@ public function setAdmissionPolicy($var) return $this; } + /** + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIngestOnWrite() + { + return isset($this->ingest_on_write) ? $this->ingest_on_write : false; + } + + public function hasIngestOnWrite() + { + return isset($this->ingest_on_write); + } + + public function clearIngestOnWrite() + { + unset($this->ingest_on_write); + } + + /** + * Optional. Specifies whether objects are ingested into the cache upon write. + * Defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIngestOnWrite($var) + { + GPBUtil::checkBool($var); + $this->ingest_on_write = $var; + + return $this; + } + } diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateRapidCacheMetadata.php b/StorageControl/src/V2/CreateRapidCacheMetadata.php similarity index 100% rename from owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateRapidCacheMetadata.php rename to StorageControl/src/V2/CreateRapidCacheMetadata.php diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateRapidCacheRequest.php b/StorageControl/src/V2/CreateRapidCacheRequest.php similarity index 100% rename from owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateRapidCacheRequest.php rename to StorageControl/src/V2/CreateRapidCacheRequest.php diff --git a/StorageControl/src/V2/FindingSummary.php b/StorageControl/src/V2/FindingSummary.php index 712fef9f4f2b..8409eb38a1a4 100644 --- a/StorageControl/src/V2/FindingSummary.php +++ b/StorageControl/src/V2/FindingSummary.php @@ -52,7 +52,7 @@ class FindingSummary extends \Google\Protobuf\Internal\Message /** * Severity of the finding. * - * Generated from protobuf field .google.storage.control.v2.FindingSeverity severity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field .google.storage.control.v2.FindingSeverity severity = 7; */ protected $severity = 0; /** @@ -254,7 +254,7 @@ public function setUpdateTime($var) /** * Severity of the finding. * - * Generated from protobuf field .google.storage.control.v2.FindingSeverity severity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field .google.storage.control.v2.FindingSeverity severity = 7; * @return int */ public function getSeverity() @@ -265,7 +265,7 @@ public function getSeverity() /** * Severity of the finding. * - * Generated from protobuf field .google.storage.control.v2.FindingSeverity severity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field .google.storage.control.v2.FindingSeverity severity = 7; * @param int $var * @return $this */ diff --git a/StorageControl/src/V2/GetFolderIntelligenceConfigRequest.php b/StorageControl/src/V2/GetFolderIntelligenceConfigRequest.php index 950c4c740986..9de5499e28f4 100644 --- a/StorageControl/src/V2/GetFolderIntelligenceConfigRequest.php +++ b/StorageControl/src/V2/GetFolderIntelligenceConfigRequest.php @@ -11,10 +11,6 @@ /** * Request message to get the `IntelligenceConfig` resource associated with your * folder. - * **IAM Permissions** - * Requires `storage.intelligenceConfigs.get` - * [IAM](https://cloud.google.com/iam/docs/overview#permissions) permission on - * the folder. * * Generated from protobuf message google.storage.control.v2.GetFolderIntelligenceConfigRequest */ diff --git a/StorageControl/src/V2/GetOrganizationIntelligenceConfigRequest.php b/StorageControl/src/V2/GetOrganizationIntelligenceConfigRequest.php index b7c3241575b9..256a3a19da96 100644 --- a/StorageControl/src/V2/GetOrganizationIntelligenceConfigRequest.php +++ b/StorageControl/src/V2/GetOrganizationIntelligenceConfigRequest.php @@ -11,10 +11,6 @@ /** * Request message to get the `IntelligenceConfig` resource associated with your * organization. - * **IAM Permissions** - * Requires `storage.intelligenceConfigs.get` - * [IAM](https://cloud.google.com/iam/docs/overview#permissions) permission on - * the organization. * * Generated from protobuf message google.storage.control.v2.GetOrganizationIntelligenceConfigRequest */ diff --git a/StorageControl/src/V2/GetProjectIntelligenceConfigRequest.php b/StorageControl/src/V2/GetProjectIntelligenceConfigRequest.php index 61efd87b3bc9..7134fad72722 100644 --- a/StorageControl/src/V2/GetProjectIntelligenceConfigRequest.php +++ b/StorageControl/src/V2/GetProjectIntelligenceConfigRequest.php @@ -11,10 +11,6 @@ /** * Request message to get the `IntelligenceConfig` resource associated with your * project. - * **IAM Permissions**: - * Requires `storage.intelligenceConfigs.get` - * [IAM](https://cloud.google.com/iam/docs/overview#permissions) permission - * on the project. * * Generated from protobuf message google.storage.control.v2.GetProjectIntelligenceConfigRequest */ diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetRapidCacheRequest.php b/StorageControl/src/V2/GetRapidCacheRequest.php similarity index 100% rename from owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetRapidCacheRequest.php rename to StorageControl/src/V2/GetRapidCacheRequest.php diff --git a/StorageControl/src/V2/IntelligenceConfig/EditionConfig.php b/StorageControl/src/V2/IntelligenceConfig/EditionConfig.php index fdd17c7f0a79..e25ed383c629 100644 --- a/StorageControl/src/V2/IntelligenceConfig/EditionConfig.php +++ b/StorageControl/src/V2/IntelligenceConfig/EditionConfig.php @@ -11,7 +11,7 @@ * signifies the edition used for configuring the `IntelligenceConfig` * resource and can only take the following values: * `EDITION_CONFIG_UNSPECIFIED`, `INHERIT`, `DISABLED`, `STANDARD` and - * `TRIAL`. + * `EVALUATE`. * * Protobuf type google.storage.control.v2.IntelligenceConfig.EditionConfig */ @@ -53,6 +53,12 @@ class EditionConfig * Generated from protobuf enum TRIAL = 5; */ const TRIAL = 5; + /** + * The `IntelligenceConfig` resource is of ESSENTIALS edition. + * + * Generated from protobuf enum ESSENTIALS = 6; + */ + const ESSENTIALS = 6; private static $valueToName = [ self::EDITION_CONFIG_UNSPECIFIED => 'EDITION_CONFIG_UNSPECIFIED', @@ -60,6 +66,7 @@ class EditionConfig self::DISABLED => 'DISABLED', self::STANDARD => 'STANDARD', self::TRIAL => 'TRIAL', + self::ESSENTIALS => 'ESSENTIALS', ]; public static function name($value) diff --git a/StorageControl/src/V2/IntelligenceFindingRevision.php b/StorageControl/src/V2/IntelligenceFindingRevision.php index c2aab16b1cfb..795743e540e2 100644 --- a/StorageControl/src/V2/IntelligenceFindingRevision.php +++ b/StorageControl/src/V2/IntelligenceFindingRevision.php @@ -17,11 +17,11 @@ class IntelligenceFindingRevision extends \Google\Protobuf\Internal\Message { /** - * Identifier. The resource name of `IntelligenceFindingRevision`. + * Output only. The resource name of `IntelligenceFindingRevision`. * Format: * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $name = ''; /** @@ -46,7 +46,7 @@ class IntelligenceFindingRevision extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * Identifier. The resource name of `IntelligenceFindingRevision`. + * Output only. The resource name of `IntelligenceFindingRevision`. * Format: * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding $snapshot @@ -63,11 +63,11 @@ public function __construct($data = NULL) { } /** - * Identifier. The resource name of `IntelligenceFindingRevision`. + * Output only. The resource name of `IntelligenceFindingRevision`. * Format: * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return string */ public function getName() @@ -76,11 +76,11 @@ public function getName() } /** - * Identifier. The resource name of `IntelligenceFindingRevision`. + * Output only. The resource name of `IntelligenceFindingRevision`. * Format: * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param string $var * @return $this */ diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListRapidCachesRequest.php b/StorageControl/src/V2/ListRapidCachesRequest.php similarity index 100% rename from owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListRapidCachesRequest.php rename to StorageControl/src/V2/ListRapidCachesRequest.php diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListRapidCachesResponse.php b/StorageControl/src/V2/ListRapidCachesResponse.php similarity index 100% rename from owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListRapidCachesResponse.php rename to StorageControl/src/V2/ListRapidCachesResponse.php diff --git a/StorageControl/src/V2/ManagedFolder.php b/StorageControl/src/V2/ManagedFolder.php index 5ade1555d673..10c34532376d 100644 --- a/StorageControl/src/V2/ManagedFolder.php +++ b/StorageControl/src/V2/ManagedFolder.php @@ -43,6 +43,12 @@ class ManagedFolder extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $update_time = null; + /** + * Rapid Cache configuration for a managed prefix. + * + * Generated from protobuf field optional .google.storage.control.v2.ManagedFolder.RapidCacheConfig rapid_cache_config = 6; + */ + protected $rapid_cache_config = null; /** * Constructor. @@ -62,6 +68,8 @@ class ManagedFolder extends \Google\Protobuf\Internal\Message * Output only. The creation time of the managed folder. * @type \Google\Protobuf\Timestamp $update_time * Output only. The modification time of the managed folder. + * @type \Google\Cloud\Storage\Control\V2\ManagedFolder\RapidCacheConfig $rapid_cache_config + * Rapid Cache configuration for a managed prefix. * } */ public function __construct($data = NULL) { @@ -201,5 +209,41 @@ public function setUpdateTime($var) return $this; } + /** + * Rapid Cache configuration for a managed prefix. + * + * Generated from protobuf field optional .google.storage.control.v2.ManagedFolder.RapidCacheConfig rapid_cache_config = 6; + * @return \Google\Cloud\Storage\Control\V2\ManagedFolder\RapidCacheConfig|null + */ + public function getRapidCacheConfig() + { + return $this->rapid_cache_config; + } + + public function hasRapidCacheConfig() + { + return isset($this->rapid_cache_config); + } + + public function clearRapidCacheConfig() + { + unset($this->rapid_cache_config); + } + + /** + * Rapid Cache configuration for a managed prefix. + * + * Generated from protobuf field optional .google.storage.control.v2.ManagedFolder.RapidCacheConfig rapid_cache_config = 6; + * @param \Google\Cloud\Storage\Control\V2\ManagedFolder\RapidCacheConfig $var + * @return $this + */ + public function setRapidCacheConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\ManagedFolder\RapidCacheConfig::class); + $this->rapid_cache_config = $var; + + return $this; + } + } diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder/RapidCacheConfig.php b/StorageControl/src/V2/ManagedFolder/RapidCacheConfig.php similarity index 100% rename from owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder/RapidCacheConfig.php rename to StorageControl/src/V2/ManagedFolder/RapidCacheConfig.php diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder/RapidCacheConfig/RapidCachePolicy.php b/StorageControl/src/V2/ManagedFolder/RapidCacheConfig/RapidCachePolicy.php similarity index 100% rename from owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder/RapidCacheConfig/RapidCachePolicy.php rename to StorageControl/src/V2/ManagedFolder/RapidCacheConfig/RapidCachePolicy.php diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder/RapidCacheConfig/RapidCachePolicy/IngestOnWrite.php b/StorageControl/src/V2/ManagedFolder/RapidCacheConfig/RapidCachePolicy/IngestOnWrite.php similarity index 100% rename from owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder/RapidCacheConfig/RapidCachePolicy/IngestOnWrite.php rename to StorageControl/src/V2/ManagedFolder/RapidCacheConfig/RapidCachePolicy/IngestOnWrite.php diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RapidCache.php b/StorageControl/src/V2/RapidCache.php similarity index 100% rename from owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RapidCache.php rename to StorageControl/src/V2/RapidCache.php diff --git a/StorageControl/src/V2/SummarizeIntelligenceFindingsRequest.php b/StorageControl/src/V2/SummarizeIntelligenceFindingsRequest.php index 7b670ac9a5dc..2035cb2d352d 100644 --- a/StorageControl/src/V2/SummarizeIntelligenceFindingsRequest.php +++ b/StorageControl/src/V2/SummarizeIntelligenceFindingsRequest.php @@ -10,7 +10,7 @@ /** * Request message to summarize the intelligence findings for the specified - * scope(org, folder or project). + * scope (organization, folder or project). * * Generated from protobuf message google.storage.control.v2.SummarizeIntelligenceFindingsRequest */ diff --git a/StorageControl/src/V2/SummarizeIntelligenceFindingsResponse.php b/StorageControl/src/V2/SummarizeIntelligenceFindingsResponse.php index 8a4680a28d1b..59e3b2706342 100644 --- a/StorageControl/src/V2/SummarizeIntelligenceFindingsResponse.php +++ b/StorageControl/src/V2/SummarizeIntelligenceFindingsResponse.php @@ -10,7 +10,7 @@ /** * Response message to summarize the intelligence findings for a specified - * scope(org, folder or project). + * scope (organization, folder or project). * * Generated from protobuf message google.storage.control.v2.SummarizeIntelligenceFindingsResponse */ diff --git a/StorageControl/src/V2/UpdateAnywhereCacheMetadata.php b/StorageControl/src/V2/UpdateAnywhereCacheMetadata.php index 6e219f7be3ac..e34499bdc07d 100644 --- a/StorageControl/src/V2/UpdateAnywhereCacheMetadata.php +++ b/StorageControl/src/V2/UpdateAnywhereCacheMetadata.php @@ -44,13 +44,20 @@ class UpdateAnywhereCacheMetadata extends \Google\Protobuf\Internal\Message */ protected $ttl = null; /** - * L4 Cache entry Admission Policy in kebab-case (e.g., + * Optional. Anywhere Cache entry Admission Policy in kebab-case (e.g., * "admit-on-first-miss"). If `admission_policy` is pending * update, this field equals to the new value specified in the Update request. * - * Generated from protobuf field optional string admission_policy = 4; + * Generated from protobuf field optional string admission_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; */ protected $admission_policy = null; + /** + * Specifies whether objects are ingested into the cache upon write. If not + * set, it defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 6; + */ + protected $ingest_on_write = null; /** * Constructor. @@ -70,9 +77,12 @@ class UpdateAnywhereCacheMetadata extends \Google\Protobuf\Internal\Message * is applied to all new cache entries on admission. If `ttl` is pending * update, this field equals to the new value specified in the Update request. * @type string $admission_policy - * L4 Cache entry Admission Policy in kebab-case (e.g., + * Optional. Anywhere Cache entry Admission Policy in kebab-case (e.g., * "admit-on-first-miss"). If `admission_policy` is pending * update, this field equals to the new value specified in the Update request. + * @type bool $ingest_on_write + * Specifies whether objects are ingested into the cache upon write. If not + * set, it defaults to false. * } */ public function __construct($data = NULL) { @@ -231,11 +241,11 @@ public function setTtl($var) } /** - * L4 Cache entry Admission Policy in kebab-case (e.g., + * Optional. Anywhere Cache entry Admission Policy in kebab-case (e.g., * "admit-on-first-miss"). If `admission_policy` is pending * update, this field equals to the new value specified in the Update request. * - * Generated from protobuf field optional string admission_policy = 4; + * Generated from protobuf field optional string admission_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getAdmissionPolicy() @@ -254,11 +264,11 @@ public function clearAdmissionPolicy() } /** - * L4 Cache entry Admission Policy in kebab-case (e.g., + * Optional. Anywhere Cache entry Admission Policy in kebab-case (e.g., * "admit-on-first-miss"). If `admission_policy` is pending * update, this field equals to the new value specified in the Update request. * - * Generated from protobuf field optional string admission_policy = 4; + * Generated from protobuf field optional string admission_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ @@ -270,5 +280,43 @@ public function setAdmissionPolicy($var) return $this; } + /** + * Specifies whether objects are ingested into the cache upon write. If not + * set, it defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 6; + * @return bool + */ + public function getIngestOnWrite() + { + return isset($this->ingest_on_write) ? $this->ingest_on_write : false; + } + + public function hasIngestOnWrite() + { + return isset($this->ingest_on_write); + } + + public function clearIngestOnWrite() + { + unset($this->ingest_on_write); + } + + /** + * Specifies whether objects are ingested into the cache upon write. If not + * set, it defaults to false. + * + * Generated from protobuf field optional bool ingest_on_write = 6; + * @param bool $var + * @return $this + */ + public function setIngestOnWrite($var) + { + GPBUtil::checkBool($var); + $this->ingest_on_write = $var; + + return $this; + } + } diff --git a/StorageControl/src/V2/UpdateFolderIntelligenceConfigRequest.php b/StorageControl/src/V2/UpdateFolderIntelligenceConfigRequest.php index 45cd99514aac..8affd1ed99e9 100644 --- a/StorageControl/src/V2/UpdateFolderIntelligenceConfigRequest.php +++ b/StorageControl/src/V2/UpdateFolderIntelligenceConfigRequest.php @@ -11,10 +11,6 @@ /** * Request message to update the `IntelligenceConfig` resource associated with * your folder. - * **IAM Permissions**: - * Requires `storage.intelligenceConfigs.update` - * [IAM](https://cloud.google.com/iam/docs/overview#permissions) permission on - * the folder. * * Generated from protobuf message google.storage.control.v2.UpdateFolderIntelligenceConfigRequest */ diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateManagedFolderRequest.php b/StorageControl/src/V2/UpdateManagedFolderRequest.php similarity index 100% rename from owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateManagedFolderRequest.php rename to StorageControl/src/V2/UpdateManagedFolderRequest.php diff --git a/StorageControl/src/V2/UpdateOrganizationIntelligenceConfigRequest.php b/StorageControl/src/V2/UpdateOrganizationIntelligenceConfigRequest.php index b7bd2d67f764..9d0844b3e02e 100644 --- a/StorageControl/src/V2/UpdateOrganizationIntelligenceConfigRequest.php +++ b/StorageControl/src/V2/UpdateOrganizationIntelligenceConfigRequest.php @@ -11,10 +11,6 @@ /** * Request message to update the `IntelligenceConfig` resource associated with * your organization. - * **IAM Permissions**: - * Requires `storage.intelligenceConfigs.update` - * [IAM](https://cloud.google.com/iam/docs/overview#permissions) permission on - * the organization. * * Generated from protobuf message google.storage.control.v2.UpdateOrganizationIntelligenceConfigRequest */ diff --git a/StorageControl/src/V2/UpdateProjectIntelligenceConfigRequest.php b/StorageControl/src/V2/UpdateProjectIntelligenceConfigRequest.php index 062473169234..46b8b8ca8ef2 100644 --- a/StorageControl/src/V2/UpdateProjectIntelligenceConfigRequest.php +++ b/StorageControl/src/V2/UpdateProjectIntelligenceConfigRequest.php @@ -11,10 +11,6 @@ /** * Request message to update the `IntelligenceConfig` resource associated with * your project. - * **IAM Permissions**: - * Requires `storage.intelligenceConfigs.update` - * [IAM](https://cloud.google.com/iam/docs/overview#permissions) permission on - * the folder. * * Generated from protobuf message google.storage.control.v2.UpdateProjectIntelligenceConfigRequest */ diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateRapidCacheMetadata.php b/StorageControl/src/V2/UpdateRapidCacheMetadata.php similarity index 100% rename from owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateRapidCacheMetadata.php rename to StorageControl/src/V2/UpdateRapidCacheMetadata.php diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateRapidCacheRequest.php b/StorageControl/src/V2/UpdateRapidCacheRequest.php similarity index 100% rename from owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateRapidCacheRequest.php rename to StorageControl/src/V2/UpdateRapidCacheRequest.php diff --git a/StorageControl/src/V2/gapic_metadata.json b/StorageControl/src/V2/gapic_metadata.json index 356973e231f7..e8d2e7d2683a 100644 --- a/StorageControl/src/V2/gapic_metadata.json +++ b/StorageControl/src/V2/gapic_metadata.json @@ -25,6 +25,11 @@ "createManagedFolder" ] }, + "CreateRapidCache": { + "methods": [ + "createRapidCache" + ] + }, "DeleteFolder": { "methods": [ "deleteFolder" @@ -90,6 +95,11 @@ "getProjectIntelligenceConfig" ] }, + "GetRapidCache": { + "methods": [ + "getRapidCache" + ] + }, "GetStorageLayout": { "methods": [ "getStorageLayout" @@ -120,6 +130,11 @@ "listManagedFolders" ] }, + "ListRapidCaches": { + "methods": [ + "listRapidCaches" + ] + }, "PauseAnywhereCache": { "methods": [ "pauseAnywhereCache" @@ -160,6 +175,11 @@ "updateFolderIntelligenceConfig" ] }, + "UpdateManagedFolder": { + "methods": [ + "updateManagedFolder" + ] + }, "UpdateOrganizationIntelligenceConfig": { "methods": [ "updateOrganizationIntelligenceConfig" @@ -169,6 +189,11 @@ "methods": [ "updateProjectIntelligenceConfig" ] + }, + "UpdateRapidCache": { + "methods": [ + "updateRapidCache" + ] } } } diff --git a/StorageControl/src/V2/resources/storage_control_client_config.json b/StorageControl/src/V2/resources/storage_control_client_config.json index 48fba696916d..147c29076b2c 100644 --- a/StorageControl/src/V2/resources/storage_control_client_config.json +++ b/StorageControl/src/V2/resources/storage_control_client_config.json @@ -6,7 +6,6 @@ "retry_policy_1_codes": [ "RESOURCE_EXHAUSTED", "UNAVAILABLE", - "DEADLINE_EXCEEDED", "INTERNAL", "UNKNOWN" ], @@ -57,6 +56,11 @@ "retry_codes_name": "no_retry_1_codes", "retry_params_name": "no_retry_1_params" }, + "CreateRapidCache": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, "DeleteFolder": { "timeout_millis": 60000, "retry_codes_name": "no_retry_1_codes", @@ -122,6 +126,11 @@ "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, + "GetRapidCache": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, "GetStorageLayout": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", @@ -152,6 +161,11 @@ "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, + "ListRapidCaches": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, "PauseAnywhereCache": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", @@ -192,6 +206,11 @@ "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, + "UpdateManagedFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, "UpdateOrganizationIntelligenceConfig": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", @@ -201,6 +220,11 @@ "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" + }, + "UpdateRapidCache": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" } } } diff --git a/StorageControl/src/V2/resources/storage_control_descriptor_config.php b/StorageControl/src/V2/resources/storage_control_descriptor_config.php index ab0db6c210d8..3b0cadacca77 100644 --- a/StorageControl/src/V2/resources/storage_control_descriptor_config.php +++ b/StorageControl/src/V2/resources/storage_control_descriptor_config.php @@ -45,6 +45,25 @@ 'requestId' => \Google\Api\FieldInfo\Format::UUID4, ], ], + 'CreateRapidCache' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Storage\Control\V2\RapidCache', + 'metadataReturnType' => '\Google\Cloud\Storage\Control\V2\CreateRapidCacheMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], 'DeleteFolderRecursive' => [ 'longRunning' => [ 'operationReturnType' => '\Google\Protobuf\GPBEmpty', @@ -121,6 +140,29 @@ 'requestId' => \Google\Api\FieldInfo\Format::UUID4, ], ], + 'UpdateRapidCache' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Storage\Control\V2\RapidCache', + 'metadataReturnType' => '\Google\Cloud\Storage\Control\V2\UpdateRapidCacheMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getRapidCache', + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + ], 'CreateFolder' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Storage\Control\V2\Folder', @@ -334,6 +376,21 @@ ], ], ], + 'GetRapidCache' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\RapidCache', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + ], 'GetStorageLayout' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Storage\Control\V2\StorageLayout', @@ -458,6 +515,26 @@ 'requestId' => \Google\Api\FieldInfo\Format::UUID4, ], ], + 'ListRapidCaches' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRapidCaches', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\ListRapidCachesResponse', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], 'PauseAnywhereCache' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Storage\Control\V2\AnywhereCache', @@ -558,6 +635,22 @@ ], ], ], + 'UpdateManagedFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Storage\Control\V2\ManagedFolder', + 'headerParams' => [ + [ + 'keyName' => 'bucket', + 'fieldAccessors' => [ + 'getManagedFolder', + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + ], 'UpdateOrganizationIntelligenceConfig' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Storage\Control\V2\IntelligenceConfig', @@ -596,6 +689,7 @@ 'managedFolder' => 'projects/{project}/buckets/{bucket}/managedFolders/{managed_folder=**}', 'orgLocationIntelligenceConfig' => 'organizations/{org}/locations/{location}/intelligenceConfig', 'projectLocationIntelligenceConfig' => 'projects/{project}/locations/{location}/intelligenceConfig', + 'rapidCache' => 'projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}', 'storageLayout' => 'projects/{project}/buckets/{bucket}/storageLayout', ], ], diff --git a/StorageControl/src/V2/resources/storage_control_rest_client_config.php b/StorageControl/src/V2/resources/storage_control_rest_client_config.php index 2fa484ed082d..cee82bea3150 100644 --- a/StorageControl/src/V2/resources/storage_control_rest_client_config.php +++ b/StorageControl/src/V2/resources/storage_control_rest_client_config.php @@ -23,6 +23,55 @@ return [ 'interfaces' => [ 'google.storage.control.v2.StorageControl' => [ + 'CreateFolder' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/buckets/*}/folders', + 'body' => 'folder', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'folder_id', + ], + ], + 'DeleteFolder' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/buckets/*/folders/**}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteFolderRecursive' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/buckets/*/folders/**}:deleteRecursive', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetFolder' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/buckets/*/folders/**}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], 'GetFolderIntelligenceConfig' => [ 'method' => 'get', 'uriTemplate' => '/v2/{name=folders/*/locations/*/intelligenceConfig}', @@ -78,6 +127,28 @@ ], ], ], + 'GetStorageLayout' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/buckets/*/storageLayout}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListFolders' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/buckets/*}/folders', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], 'ListIntelligenceFindingRevisions' => [ 'method' => 'get', 'uriTemplate' => '/v2/{parent=projects/*/locations/*/intelligenceFindings/*}/revisions', @@ -100,6 +171,18 @@ ], ], ], + 'RenameFolder' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/buckets/*/folders/**}:rename', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], 'SummarizeIntelligenceFindings' => [ 'method' => 'get', 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/intelligenceFindings:summarize', diff --git a/StorageControl/tests/Unit/V2/Client/StorageControlClientTest.php b/StorageControl/tests/Unit/V2/Client/StorageControlClientTest.php index ef7a02a8e0a3..82fc880a7122 100644 --- a/StorageControl/tests/Unit/V2/Client/StorageControlClientTest.php +++ b/StorageControl/tests/Unit/V2/Client/StorageControlClientTest.php @@ -36,6 +36,7 @@ use Google\Cloud\Storage\Control\V2\CreateAnywhereCacheRequest; use Google\Cloud\Storage\Control\V2\CreateFolderRequest; use Google\Cloud\Storage\Control\V2\CreateManagedFolderRequest; +use Google\Cloud\Storage\Control\V2\CreateRapidCacheRequest; use Google\Cloud\Storage\Control\V2\DeleteFolderRecursiveRequest; use Google\Cloud\Storage\Control\V2\DeleteFolderRequest; use Google\Cloud\Storage\Control\V2\DeleteManagedFolderRequest; @@ -50,6 +51,7 @@ use Google\Cloud\Storage\Control\V2\GetManagedFolderRequest; use Google\Cloud\Storage\Control\V2\GetOrganizationIntelligenceConfigRequest; use Google\Cloud\Storage\Control\V2\GetProjectIntelligenceConfigRequest; +use Google\Cloud\Storage\Control\V2\GetRapidCacheRequest; use Google\Cloud\Storage\Control\V2\GetStorageLayoutRequest; use Google\Cloud\Storage\Control\V2\IntelligenceConfig; use Google\Cloud\Storage\Control\V2\IntelligenceFinding; @@ -64,8 +66,11 @@ use Google\Cloud\Storage\Control\V2\ListIntelligenceFindingsResponse; use Google\Cloud\Storage\Control\V2\ListManagedFoldersRequest; use Google\Cloud\Storage\Control\V2\ListManagedFoldersResponse; +use Google\Cloud\Storage\Control\V2\ListRapidCachesRequest; +use Google\Cloud\Storage\Control\V2\ListRapidCachesResponse; use Google\Cloud\Storage\Control\V2\ManagedFolder; use Google\Cloud\Storage\Control\V2\PauseAnywhereCacheRequest; +use Google\Cloud\Storage\Control\V2\RapidCache; use Google\Cloud\Storage\Control\V2\RenameFolderRequest; use Google\Cloud\Storage\Control\V2\ResumeAnywhereCacheRequest; use Google\Cloud\Storage\Control\V2\StorageLayout; @@ -73,8 +78,10 @@ use Google\Cloud\Storage\Control\V2\SummarizeIntelligenceFindingsResponse; use Google\Cloud\Storage\Control\V2\UpdateAnywhereCacheRequest; use Google\Cloud\Storage\Control\V2\UpdateFolderIntelligenceConfigRequest; +use Google\Cloud\Storage\Control\V2\UpdateManagedFolderRequest; use Google\Cloud\Storage\Control\V2\UpdateOrganizationIntelligenceConfigRequest; use Google\Cloud\Storage\Control\V2\UpdateProjectIntelligenceConfigRequest; +use Google\Cloud\Storage\Control\V2\UpdateRapidCacheRequest; use Google\LongRunning\Client\OperationsClient; use Google\LongRunning\GetOperationRequest; use Google\LongRunning\Operation; @@ -140,12 +147,14 @@ public function createAnywhereCacheTest() $admissionPolicy = 'admissionPolicy1847270952'; $state = 'state109757585'; $pendingUpdate = false; + $ingestOnWrite = true; $expectedResponse = new AnywhereCache(); $expectedResponse->setName($name); $expectedResponse->setZone($zone); $expectedResponse->setAdmissionPolicy($admissionPolicy); $expectedResponse->setState($state); $expectedResponse->setPendingUpdate($pendingUpdate); + $expectedResponse->setIngestOnWrite($ingestOnWrite); $anyResponse = new Any(); $anyResponse->setValue($expectedResponse->serializeToString()); $completeOperation = new Operation(); @@ -412,6 +421,144 @@ public function createManagedFolderExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function createRapidCacheTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createRapidCacheTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $zone = 'zone3744684'; + $cacheType = 'cacheType29096407'; + $admissionPolicy = 'admissionPolicy1847270952'; + $state = 'state109757585'; + $pendingUpdate = false; + $expectedResponse = new RapidCache(); + $expectedResponse->setName($name); + $expectedResponse->setZone($zone); + $expectedResponse->setCacheType($cacheType); + $expectedResponse->setAdmissionPolicy($admissionPolicy); + $expectedResponse->setState($state); + $expectedResponse->setPendingUpdate($pendingUpdate); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createRapidCacheTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $rapidCache = new RapidCache(); + $request = (new CreateRapidCacheRequest())->setParent($formattedParent)->setRapidCache($rapidCache); + $response = $gapicClient->createRapidCache($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/CreateRapidCache', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getRapidCache(); + $this->assertProtobufEquals($rapidCache, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createRapidCacheTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createRapidCacheExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createRapidCacheTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $rapidCache = new RapidCache(); + $request = (new CreateRapidCacheRequest())->setParent($formattedParent)->setRapidCache($rapidCache); + $response = $gapicClient->createRapidCache($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createRapidCacheTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + /** @test */ public function deleteFolderTest() { @@ -672,12 +819,14 @@ public function disableAnywhereCacheTest() $admissionPolicy = 'admissionPolicy1847270952'; $state = 'state109757585'; $pendingUpdate = false; + $ingestOnWrite = true; $expectedResponse = new AnywhereCache(); $expectedResponse->setName($name2); $expectedResponse->setZone($zone); $expectedResponse->setAdmissionPolicy($admissionPolicy); $expectedResponse->setState($state); $expectedResponse->setPendingUpdate($pendingUpdate); + $expectedResponse->setIngestOnWrite($ingestOnWrite); $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); @@ -745,12 +894,14 @@ public function getAnywhereCacheTest() $admissionPolicy = 'admissionPolicy1847270952'; $state = 'state109757585'; $pendingUpdate = false; + $ingestOnWrite = true; $expectedResponse = new AnywhereCache(); $expectedResponse->setName($name2); $expectedResponse->setZone($zone); $expectedResponse->setAdmissionPolicy($admissionPolicy); $expectedResponse->setState($state); $expectedResponse->setPendingUpdate($pendingUpdate); + $expectedResponse->setIngestOnWrite($ingestOnWrite); $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); @@ -1347,6 +1498,81 @@ public function getProjectIntelligenceConfigExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function getRapidCacheTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone = 'zone3744684'; + $cacheType = 'cacheType29096407'; + $admissionPolicy = 'admissionPolicy1847270952'; + $state = 'state109757585'; + $pendingUpdate = false; + $expectedResponse = new RapidCache(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone); + $expectedResponse->setCacheType($cacheType); + $expectedResponse->setAdmissionPolicy($admissionPolicy); + $expectedResponse->setState($state); + $expectedResponse->setPendingUpdate($pendingUpdate); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->rapidCacheName('[PROJECT]', '[BUCKET]', '[RAPID_CACHE]'); + $request = (new GetRapidCacheRequest())->setName($formattedName); + $response = $gapicClient->getRapidCache($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/GetRapidCache', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRapidCacheExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->rapidCacheName('[PROJECT]', '[BUCKET]', '[RAPID_CACHE]'); + $request = (new GetRapidCacheRequest())->setName($formattedName); + try { + $gapicClient->getRapidCache($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + /** @test */ public function getStorageLayoutTest() { @@ -1774,6 +2000,77 @@ public function listManagedFoldersExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function listRapidCachesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $rapidCachesElement = new RapidCache(); + $rapidCaches = [$rapidCachesElement]; + $expectedResponse = new ListRapidCachesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRapidCaches($rapidCaches); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $request = (new ListRapidCachesRequest())->setParent($formattedParent); + $response = $gapicClient->listRapidCaches($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRapidCaches()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/ListRapidCaches', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRapidCachesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); + $request = (new ListRapidCachesRequest())->setParent($formattedParent); + try { + $gapicClient->listRapidCaches($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + /** @test */ public function pauseAnywhereCacheTest() { @@ -1788,12 +2085,14 @@ public function pauseAnywhereCacheTest() $admissionPolicy = 'admissionPolicy1847270952'; $state = 'state109757585'; $pendingUpdate = false; + $ingestOnWrite = true; $expectedResponse = new AnywhereCache(); $expectedResponse->setName($name2); $expectedResponse->setZone($zone); $expectedResponse->setAdmissionPolicy($admissionPolicy); $expectedResponse->setState($state); $expectedResponse->setPendingUpdate($pendingUpdate); + $expectedResponse->setIngestOnWrite($ingestOnWrite); $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); @@ -1991,12 +2290,14 @@ public function resumeAnywhereCacheTest() $admissionPolicy = 'admissionPolicy1847270952'; $state = 'state109757585'; $pendingUpdate = false; + $ingestOnWrite = true; $expectedResponse = new AnywhereCache(); $expectedResponse->setName($name2); $expectedResponse->setZone($zone); $expectedResponse->setAdmissionPolicy($admissionPolicy); $expectedResponse->setState($state); $expectedResponse->setPendingUpdate($pendingUpdate); + $expectedResponse->setIngestOnWrite($ingestOnWrite); $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); @@ -2285,12 +2586,14 @@ public function updateAnywhereCacheTest() $admissionPolicy = 'admissionPolicy1847270952'; $state = 'state109757585'; $pendingUpdate = false; + $ingestOnWrite = true; $expectedResponse = new AnywhereCache(); $expectedResponse->setName($name); $expectedResponse->setZone($zone); $expectedResponse->setAdmissionPolicy($admissionPolicy); $expectedResponse->setState($state); $expectedResponse->setPendingUpdate($pendingUpdate); + $expectedResponse->setIngestOnWrite($ingestOnWrite); $anyResponse = new Any(); $anyResponse->setValue($expectedResponse->serializeToString()); $completeOperation = new Operation(); @@ -2468,6 +2771,73 @@ public function updateFolderIntelligenceConfigExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function updateManagedFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $metageneration = 1048558813; + $expectedResponse = new ManagedFolder(); + $expectedResponse->setName($name); + $expectedResponse->setMetageneration($metageneration); + $transport->addResponse($expectedResponse); + // Mock request + $managedFolder = new ManagedFolder(); + $request = (new UpdateManagedFolderRequest())->setManagedFolder($managedFolder); + $response = $gapicClient->updateManagedFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/UpdateManagedFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getManagedFolder(); + $this->assertProtobufEquals($managedFolder, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateManagedFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $managedFolder = new ManagedFolder(); + $request = (new UpdateManagedFolderRequest())->setManagedFolder($managedFolder); + try { + $gapicClient->updateManagedFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + /** @test */ public function updateOrganizationIntelligenceConfigTest() { @@ -2617,6 +2987,144 @@ public function updateProjectIntelligenceConfigExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function updateRapidCacheTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateRapidCacheTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $zone = 'zone3744684'; + $cacheType = 'cacheType29096407'; + $admissionPolicy = 'admissionPolicy1847270952'; + $state = 'state109757585'; + $pendingUpdate = false; + $expectedResponse = new RapidCache(); + $expectedResponse->setName($name); + $expectedResponse->setZone($zone); + $expectedResponse->setCacheType($cacheType); + $expectedResponse->setAdmissionPolicy($admissionPolicy); + $expectedResponse->setState($state); + $expectedResponse->setPendingUpdate($pendingUpdate); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateRapidCacheTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $rapidCache = new RapidCache(); + $updateMask = new FieldMask(); + $request = (new UpdateRapidCacheRequest())->setRapidCache($rapidCache)->setUpdateMask($updateMask); + $response = $gapicClient->updateRapidCache($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.storage.control.v2.StorageControl/UpdateRapidCache', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getRapidCache(); + $this->assertProtobufEquals($rapidCache, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateRapidCacheTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateRapidCacheExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateRapidCacheTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $operationsTransport->addResponse(null, $status); + // Mock request + $rapidCache = new RapidCache(); + $updateMask = new FieldMask(); + $request = (new UpdateRapidCacheRequest())->setRapidCache($rapidCache)->setUpdateMask($updateMask); + $response = $gapicClient->updateRapidCache($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateRapidCacheTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + /** @test */ public function createAnywhereCacheAsyncTest() { @@ -2643,12 +3151,14 @@ public function createAnywhereCacheAsyncTest() $admissionPolicy = 'admissionPolicy1847270952'; $state = 'state109757585'; $pendingUpdate = false; + $ingestOnWrite = true; $expectedResponse = new AnywhereCache(); $expectedResponse->setName($name); $expectedResponse->setZone($zone); $expectedResponse->setAdmissionPolicy($admissionPolicy); $expectedResponse->setState($state); $expectedResponse->setPendingUpdate($pendingUpdate); + $expectedResponse->setIngestOnWrite($ingestOnWrite); $anyResponse = new Any(); $anyResponse->setValue($expectedResponse->serializeToString()); $completeOperation = new Operation(); diff --git a/owl-bot-staging/StorageControl/v2/proto/src/GPBMetadata/Google/Storage/Control/V2/StorageControl.php b/owl-bot-staging/StorageControl/v2/proto/src/GPBMetadata/Google/Storage/Control/V2/StorageControl.php deleted file mode 100644 index 6c874b5180c5..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/GPBMetadata/Google/Storage/Control/V2/StorageControl.php +++ /dev/null @@ -1,39 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xC4\xE2\x01\x0A/google/storage/control/v2/storage_control.proto\x12\x19google.storage.control.v2\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A\x18google/api/routing.proto\x1A\x1Egoogle/iam/v1/iam_policy.proto\x1A\x1Agoogle/iam/v1/policy.proto\x1A#google/longrunning/operations.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\x1A\x1Agoogle/type/interval.proto\"+\x0A\x11PendingRenameInfo\x12\x16\x0A\x09operation\x18\x01 \x01(\x09B\x03\xE0A\x03\"\xE2\x02\x0A\x06Folder\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1B\x0A\x0Emetageneration\x18\x03 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12N\x0A\x13pending_rename_info\x18\x07 \x01(\x0B2,.google.storage.control.v2.PendingRenameInfoB\x03\xE0A\x03:l\xEAAi\x0A\x1Dstorage.googleapis.com/Folder\x127projects/{project}/buckets/{bucket}/folders/{folder=**}*\x07folders2\x06folder\"\xF4\x01\x0A\x10GetFolderRequest\x123\x0A\x04name\x18\x06 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Folder\x12\$\x0A\x17if_metageneration_match\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\xD5\x01\x0A\x13CreateFolderRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Dstorage.googleapis.com/Folder\x126\x0A\x06folder\x18\x02 \x01(\x0B2!.google.storage.control.v2.FolderB\x03\xE0A\x02\x12\x16\x0A\x09folder_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x16\x0A\x09recursive\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xF7\x01\x0A\x13DeleteFolderRequest\x123\x0A\x04name\x18\x06 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Folder\x12\$\x0A\x17if_metageneration_match\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\x8C\x02\x0A\x12ListFoldersRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Dstorage.googleapis.com/Folder\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06prefix\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09delimiter\x18\x08 \x01(\x09B\x03\xE0A\x01\x12 \x0A\x13lexicographic_start\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11lexicographic_end\x18\x07 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x0Arequest_id\x18\x09 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"b\x0A\x13ListFoldersResponse\x122\x0A\x07folders\x18\x01 \x03(\x0B2!.google.storage.control.v2.Folder\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x9B\x02\x0A\x13RenameFolderRequest\x123\x0A\x04name\x18\x07 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Folder\x12\"\x0A\x15destination_folder_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\$\x0A\x17if_metageneration_match\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x05 \x01(\x03H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x06 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\x8A\x02\x0A\x1CDeleteFolderRecursiveRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Folder\x12)\x0A\x17if_metageneration_match\x18\x02 \x01(\x03B\x03\xE0A\x01H\x00\x88\x01\x01\x12-\x0A\x1Bif_metageneration_not_match\x18\x03 \x01(\x03B\x03\xE0A\x01H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\x9A\x02\x0A\"CommonLongRunningOperationMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04type\x18\x04 \x01(\x09B\x03\xE0A\x03\x12#\x0A\x16requested_cancellation\x18\x05 \x01(\x08B\x03\xE0A\x03\x12\x1D\x0A\x10progress_percent\x18\x06 \x01(\x05B\x03\xE0A\x03\"\xA7\x01\x0A\x14RenameFolderMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x18\x0A\x10source_folder_id\x18\x02 \x01(\x09\x12\x1D\x0A\x15destination_folder_id\x18\x03 \x01(\x09\"\x8A\x01\x0A\x1DDeleteFolderRecursiveMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x11\x0A\x09folder_id\x18\x02 \x01(\x09\"\xF8\x03\x0A\x0DStorageLayout\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x15\x0A\x08location\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x1A\x0A\x0Dlocation_type\x18\x03 \x01(\x09B\x03\xE0A\x03\x12d\x0A\x17custom_placement_config\x18\x04 \x01(\x0B2>.google.storage.control.v2.StorageLayout.CustomPlacementConfigB\x03\xE0A\x03\x12c\x0A\x16hierarchical_namespace\x18\x05 \x01(\x0B2>.google.storage.control.v2.StorageLayout.HierarchicalNamespaceB\x03\xE0A\x03\x1A/\x0A\x15CustomPlacementConfig\x12\x16\x0A\x0Edata_locations\x18\x01 \x03(\x09\x1A(\x0A\x15HierarchicalNamespace\x12\x0F\x0A\x07enabled\x18\x01 \x01(\x08:{\xEAAx\x0A\$storage.googleapis.com/StorageLayout\x121projects/{project}/buckets/{bucket}/storageLayout*\x0EstorageLayouts2\x0DstorageLayout\"\x86\x01\x0A\x17GetStorageLayoutRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/StorageLayout\x12\x0E\x0A\x06prefix\x18\x02 \x01(\x09\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\x9D\x07\x0A\x0DManagedFolder\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1B\x0A\x0Emetageneration\x18\x03 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12Z\x0A\x12rapid_cache_config\x18\x06 \x01(\x0B29.google.storage.control.v2.ManagedFolder.RapidCacheConfigH\x00\x88\x01\x01\x1A\xE8\x03\x0A\x10RapidCacheConfig\x12^\x0A\x08policies\x18\x01 \x03(\x0B2G.google.storage.control.v2.ManagedFolder.RapidCacheConfig.PoliciesEntryB\x03\xE0A\x01\x1A\xF6\x01\x0A\x10RapidCachePolicy\x12\x1B\x0A\x0Erapid_cache_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12v\x0A\x0Fingest_on_write\x18\x02 \x01(\x0E2X.google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy.IngestOnWriteB\x03\xE0A\x02\"M\x0A\x0DIngestOnWrite\x12\x1F\x0A\x1BINGEST_ON_WRITE_UNSPECIFIED\x10\x00\x12\x1B\x0A\x17INGEST_ON_WRITE_ENABLED\x10\x01\x1A{\x0A\x0DPoliciesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12Y\x0A\x05value\x18\x02 \x01(\x0B2J.google.storage.control.v2.ManagedFolder.RapidCacheConfig.RapidCachePolicy:\x028\x01:\x91\x01\xEAA\x8D\x01\x0A\$storage.googleapis.com/ManagedFolder\x12Fprojects/{project}/buckets/{bucket}/managedFolders/{managed_folder=**}*\x0EmanagedFolders2\x0DmanagedFolderB\x15\x0A\x13_rapid_cache_config\"\x82\x02\x0A\x17GetManagedFolderRequest\x12:\x0A\x04name\x18\x06 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/ManagedFolder\x12\$\x0A\x17if_metageneration_match\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\xE2\x01\x0A\x1ACreateManagedFolderRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$storage.googleapis.com/ManagedFolder\x12E\x0A\x0Emanaged_folder\x18\x02 \x01(\x0B2(.google.storage.control.v2.ManagedFolderB\x03\xE0A\x02\x12\x1E\x0A\x11managed_folder_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\x9E\x02\x0A\x1ADeleteManagedFolderRequest\x12:\x0A\x04name\x18\x07 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/ManagedFolder\x12\$\x0A\x17if_metageneration_match\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12(\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03H\x01\x88\x01\x01\x12\x17\x0A\x0Fallow_non_empty\x18\x05 \x01(\x08\x12\x1F\x0A\x0Arequest_id\x18\x06 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\xC0\x01\x0A\x19ListManagedFoldersRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$storage.googleapis.com/ManagedFolder\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06prefix\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"x\x0A\x1AListManagedFoldersResponse\x12A\x0A\x0Fmanaged_folders\x18\x01 \x03(\x0B2(.google.storage.control.v2.ManagedFolder\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xD0\x02\x0A\x1AUpdateManagedFolderRequest\x12E\x0A\x0Emanaged_folder\x18\x01 \x01(\x0B2(.google.storage.control.v2.ManagedFolderB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12)\x0A\x17if_metageneration_match\x18\x03 \x01(\x03B\x03\xE0A\x01H\x00\x88\x01\x01\x12-\x0A\x1Bif_metageneration_not_match\x18\x04 \x01(\x03B\x03\xE0A\x01H\x01\x88\x01\x01\x12\x1F\x0A\x0Arequest_id\x18\x05 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01B\x1A\x0A\x18_if_metageneration_matchB\x1E\x0A\x1C_if_metageneration_not_match\"\xE7\x02\x0A\x1BCreateAnywhereCacheMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x1E\x0A\x11anywhere_cache_id\x18\x02 \x01(\x09H\x00\x88\x01\x01\x12\x11\x0A\x04zone\x18\x06 \x01(\x09H\x01\x88\x01\x01\x12+\x0A\x03ttl\x18\x03 \x01(\x0B2\x19.google.protobuf.DurationH\x02\x88\x01\x01\x12\x1D\x0A\x10admission_policy\x18\x05 \x01(\x09H\x03\x88\x01\x01\x12!\x0A\x0Fingest_on_write\x18\x07 \x01(\x08B\x03\xE0A\x01H\x04\x88\x01\x01B\x14\x0A\x12_anywhere_cache_idB\x07\x0A\x05_zoneB\x06\x0A\x04_ttlB\x13\x0A\x11_admission_policyB\x12\x0A\x10_ingest_on_write\"\x8B\x03\x0A\x18CreateRapidCacheMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x1B\x0A\x0Erapid_cache_id\x18\x02 \x01(\x09H\x00\x88\x01\x01\x12\x11\x0A\x04zone\x18\x03 \x01(\x09H\x01\x88\x01\x01\x12+\x0A\x03ttl\x18\x04 \x01(\x0B2\x19.google.protobuf.DurationH\x02\x88\x01\x01\x12\x1D\x0A\x10admission_policy\x18\x05 \x01(\x09H\x03\x88\x01\x01\x12!\x0A\x0Fingest_on_write\x18\x06 \x01(\x08B\x03\xE0A\x01H\x04\x88\x01\x01\x12\x1C\x0A\x0Acache_type\x18\x07 \x01(\x09B\x03\xE0A\x01H\x05\x88\x01\x01B\x11\x0A\x0F_rapid_cache_idB\x07\x0A\x05_zoneB\x06\x0A\x04_ttlB\x13\x0A\x11_admission_policyB\x12\x0A\x10_ingest_on_writeB\x0D\x0A\x0B_cache_type\"\xE7\x02\x0A\x1BUpdateAnywhereCacheMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x1E\x0A\x11anywhere_cache_id\x18\x02 \x01(\x09H\x00\x88\x01\x01\x12\x11\x0A\x04zone\x18\x05 \x01(\x09H\x01\x88\x01\x01\x12+\x0A\x03ttl\x18\x03 \x01(\x0B2\x19.google.protobuf.DurationH\x02\x88\x01\x01\x12\"\x0A\x10admission_policy\x18\x04 \x01(\x09B\x03\xE0A\x01H\x03\x88\x01\x01\x12\x1C\x0A\x0Fingest_on_write\x18\x06 \x01(\x08H\x04\x88\x01\x01B\x14\x0A\x12_anywhere_cache_idB\x07\x0A\x05_zoneB\x06\x0A\x04_ttlB\x13\x0A\x11_admission_policyB\x12\x0A\x10_ingest_on_write\"\x8B\x03\x0A\x18UpdateRapidCacheMetadata\x12V\x0A\x0Fcommon_metadata\x18\x01 \x01(\x0B2=.google.storage.control.v2.CommonLongRunningOperationMetadata\x12\x1B\x0A\x0Erapid_cache_id\x18\x02 \x01(\x09H\x00\x88\x01\x01\x12\x11\x0A\x04zone\x18\x03 \x01(\x09H\x01\x88\x01\x01\x12+\x0A\x03ttl\x18\x04 \x01(\x0B2\x19.google.protobuf.DurationH\x02\x88\x01\x01\x12\"\x0A\x10admission_policy\x18\x05 \x01(\x09B\x03\xE0A\x01H\x03\x88\x01\x01\x12\x1C\x0A\x0Fingest_on_write\x18\x06 \x01(\x08H\x04\x88\x01\x01\x12\x1C\x0A\x0Acache_type\x18\x07 \x01(\x09B\x03\xE0A\x01H\x05\x88\x01\x01B\x11\x0A\x0F_rapid_cache_idB\x07\x0A\x05_zoneB\x06\x0A\x04_ttlB\x13\x0A\x11_admission_policyB\x12\x0A\x10_ingest_on_writeB\x0D\x0A\x0B_cache_type\"\xDC\x03\x0A\x0DAnywhereCache\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x05\x12\x11\x0A\x04zone\x18\x0A \x01(\x09B\x03\xE0A\x05\x12&\x0A\x03ttl\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x12\x18\x0A\x10admission_policy\x18\x09 \x01(\x09\x12\x12\x0A\x05state\x18\x05 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1B\x0A\x0Epending_update\x18\x08 \x01(\x08B\x03\xE0A\x03\x12!\x0A\x0Fingest_on_write\x18\x0B \x01(\x08B\x03\xE0A\x01H\x00\x88\x01\x01:\x8E\x01\xEAA\x8A\x01\x0A\$storage.googleapis.com/AnywhereCache\x12Cprojects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}*\x0EanywhereCaches2\x0DanywhereCacheB\x12\x0A\x10_ingest_on_write\"\xC2\x01\x0A\x1ACreateAnywhereCacheRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$storage.googleapis.com/AnywhereCache\x12E\x0A\x0Eanywhere_cache\x18\x03 \x01(\x0B2(.google.storage.control.v2.AnywhereCacheB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xBA\x01\x0A\x1AUpdateAnywhereCacheRequest\x12E\x0A\x0Eanywhere_cache\x18\x01 \x01(\x0B2(.google.storage.control.v2.AnywhereCacheB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"z\x0A\x1BDisableAnywhereCacheRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/AnywhereCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"x\x0A\x19PauseAnywhereCacheRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/AnywhereCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"y\x0A\x1AResumeAnywhereCacheRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/AnywhereCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"v\x0A\x17GetAnywhereCacheRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$storage.googleapis.com/AnywhereCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xA1\x01\x0A\x19ListAnywhereCachesRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$storage.googleapis.com/AnywhereCache\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"x\x0A\x1AListAnywhereCachesResponse\x12A\x0A\x0Fanywhere_caches\x18\x01 \x03(\x0B2(.google.storage.control.v2.AnywhereCache\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xAA\x03\x0A\x0ARapidCache\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x05\x12\x11\x0A\x04zone\x18\x02 \x01(\x09B\x03\xE0A\x05\x12\x17\x0A\x0Acache_type\x18\x03 \x01(\x09B\x03\xE0A\x05\x12&\x0A\x03ttl\x18\x04 \x01(\x0B2\x19.google.protobuf.Duration\x12\x18\x0A\x10admission_policy\x18\x05 \x01(\x09\x12\x12\x0A\x05state\x18\x06 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1B\x0A\x0Epending_update\x18\x09 \x01(\x08B\x03\xE0A\x03:~\xEAA{\x0A!storage.googleapis.com/RapidCache\x12=projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}*\x0BrapidCaches2\x0ArapidCache\"\xB6\x01\x0A\x17CreateRapidCacheRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x12!storage.googleapis.com/RapidCache\x12?\x0A\x0Brapid_cache\x18\x02 \x01(\x0B2%.google.storage.control.v2.RapidCacheB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xB1\x01\x0A\x17UpdateRapidCacheRequest\x12?\x0A\x0Brapid_cache\x18\x01 \x01(\x0B2%.google.storage.control.v2.RapidCacheB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"p\x0A\x14GetRapidCacheRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!storage.googleapis.com/RapidCache\x12\x1F\x0A\x0Arequest_id\x18\x02 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\x9B\x01\x0A\x16ListRapidCachesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x12!storage.googleapis.com/RapidCache\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12\x1F\x0A\x0Arequest_id\x18\x04 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"o\x0A\x17ListRapidCachesResponse\x12;\x0A\x0Crapid_caches\x18\x01 \x03(\x0B2%.google.storage.control.v2.RapidCache\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x9E\x0E\x0A\x12IntelligenceConfig\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12X\x0A\x0Eedition_config\x18\x02 \x01(\x0E2;.google.storage.control.v2.IntelligenceConfig.EditionConfigB\x03\xE0A\x01\x124\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12I\x0A\x06filter\x18\x04 \x01(\x0B24.google.storage.control.v2.IntelligenceConfig.FilterB\x03\xE0A\x01\x12u\x0A\x1Deffective_intelligence_config\x18\x05 \x01(\x0B2I.google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfigB\x03\xE0A\x03\x12O\x0A\x0Ctrial_config\x18\x07 \x01(\x0B29.google.storage.control.v2.IntelligenceConfig.TrialConfig\x1A\xFC\x04\x0A\x06Filter\x12v\x0A included_cloud_storage_locations\x18\x01 \x01(\x0B2J.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocationsH\x00\x12v\x0A excluded_cloud_storage_locations\x18\x02 \x01(\x0B2J.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocationsH\x00\x12r\x0A\x1Eincluded_cloud_storage_buckets\x18\x03 \x01(\x0B2H.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBucketsH\x01\x12r\x0A\x1Eexcluded_cloud_storage_buckets\x18\x04 \x01(\x0B2H.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBucketsH\x01\x1A/\x0A\x15CloudStorageLocations\x12\x16\x0A\x09locations\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A5\x0A\x13CloudStorageBuckets\x12\x1E\x0A\x11bucket_id_regexes\x18\x01 \x03(\x09B\x03\xE0A\x01B\x19\x0A\x17cloud_storage_locationsB\x17\x0A\x15cloud_storage_buckets\x1A\x8A\x02\x0A\x1BEffectiveIntelligenceConfig\x12z\x0A\x11effective_edition\x18\x01 \x01(\x0E2Z.google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEditionB\x03\xE0A\x03\x12 \x0A\x13intelligence_config\x18\x02 \x01(\x09B\x03\xE0A\x03\"M\x0A\x10EffectiveEdition\x12!\x0A\x1DEFFECTIVE_EDITION_UNSPECIFIED\x10\x00\x12\x08\x0A\x04NONE\x10\x01\x12\x0C\x0A\x08STANDARD\x10\x02\x1AC\x0A\x0BTrialConfig\x124\x0A\x0Bexpire_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\"s\x0A\x0DEditionConfig\x12\x1E\x0A\x1AEDITION_CONFIG_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07INHERIT\x10\x01\x12\x0C\x0A\x08DISABLED\x10\x02\x12\x0C\x0A\x08STANDARD\x10\x03\x12\x09\x0A\x05TRIAL\x10\x05\x12\x0E\x0A\x0AESSENTIALS\x10\x06:\x8B\x02\xEAA\x87\x02\x0A)storage.googleapis.com/IntelligenceConfig\x128folders/{folder}/locations/{location}/intelligenceConfig\x12;organizations/{org}/locations/{location}/intelligenceConfig\x12:projects/{project}/locations/{location}/intelligenceConfig*\x13intelligenceConfigs2\x12intelligenceConfig\"\xD5\x01\x0A+UpdateOrganizationIntelligenceConfigRequest\x12O\x0A\x13intelligence_config\x18\x01 \x01(\x0B2-.google.storage.control.v2.IntelligenceConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xCF\x01\x0A%UpdateFolderIntelligenceConfigRequest\x12O\x0A\x13intelligence_config\x18\x01 \x01(\x0B2-.google.storage.control.v2.IntelligenceConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"\xD0\x01\x0A&UpdateProjectIntelligenceConfigRequest\x12O\x0A\x13intelligence_config\x18\x01 \x01(\x0B2-.google.storage.control.v2.IntelligenceConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1F\x0A\x0Arequest_id\x18\x03 \x01(\x09B\x0B\xE0A\x01\xE2\x8C\xCF\xD7\x08\x02\x08\x01\"k\x0A(GetOrganizationIntelligenceConfigRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)storage.googleapis.com/IntelligenceConfig\"e\x0A\"GetFolderIntelligenceConfigRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)storage.googleapis.com/IntelligenceConfig\"f\x0A#GetProjectIntelligenceConfigRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)storage.googleapis.com/IntelligenceConfig\"\xBE \x0A\x13IntelligenceFinding\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x03\x129\x0A\x04type\x18\x03 \x01(\x0E2&.google.storage.control.v2.FindingTypeB\x03\xE0A\x03\x12A\x0A\x08category\x18\x04 \x01(\x0E2*.google.storage.control.v2.FindingCategoryB\x03\xE0A\x03\x12A\x0A\x08severity\x18\x05 \x01(\x0E2*.google.storage.control.v2.FindingSeverityB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1C\x0A\x0Ftarget_resource\x18\x08 \x01(\x09B\x03\xE0A\x03\x12!\x0A\x14associated_resources\x18\x09 \x03(\x09B\x03\xE0A\x03\x126\x0A\x12observation_period\x18\x0A \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12\x97\x01\x0A.coldline_and_archival_storage_operations_spike\x18\x0B \x01(\x0B2X.google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpikeB\x03\xE0A\x03H\x00\x12m\x0A\x18throttled_requests_spike\x18\x0C \x01(\x0B2D.google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpikeB\x03\xE0A\x03H\x00\x12o\x0A\x19cross_region_egress_spike\x18\x0D \x01(\x0B2E.google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpikeB\x03\xE0A\x03H\x00\x12q\x0A\x1Astorage_growth_above_trend\x18\x0E \x01(\x0B2F.google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrendB\x03\xE0A\x03H\x00\x1A\x89\x07\x0A)ColdlineAndArchivalStorageOperationsSpike\x12 \x0A\x13percentage_increase\x18\x01 \x01(\x01B\x03\xE0A\x03\x12#\x0A\x16total_operations_count\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x85\x01\x0A\x0Btop_buckets\x18\x03 \x03(\x0B2k.google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContributionB\x03\xE0A\x03\x1A\x8C\x05\x0A\x12BucketContribution\x125\x0A\x06bucket\x18\x01 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Bucket\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12#\x0A\x16total_operations_count\x18\x03 \x01(\x03B\x03\xE0A\x03\x12\x95\x01\x0A\x0Ccontribution\x18\x04 \x01(\x0B2x.google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.ContributionB\x03\xE0A\x03H\x00\x12(\x0A\x05error\x18\x05 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03H\x00\x1A\xAA\x02\x0A\x0CContribution\x12\xA7\x01\x0A\x0Ctop_prefixes\x18\x01 \x03(\x0B2\x8B\x01.google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.Contribution.PrefixContributionB\x03\xE0A\x03\x1Ap\x0A\x12PrefixContribution\x12\x13\x0A\x06prefix\x18\x01 \x01(\x09B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12#\x0A\x16total_operations_count\x18\x03 \x01(\x03B\x03\xE0A\x03B\x09\x0A\x07details\x1A\xAF\x06\x0A\x16CrossRegionEgressSpike\x12\x1F\x0A\x12total_egress_bytes\x18\x01 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12r\x0A\x0Btop_buckets\x18\x03 \x03(\x0B2X.google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContributionB\x03\xE0A\x03\x1A\xDD\x04\x0A\x12BucketContribution\x125\x0A\x06bucket\x18\x01 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Bucket\x12\x1F\x0A\x12total_egress_bytes\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03\x12\x82\x01\x0A\x0Ccontribution\x18\x04 \x01(\x0B2e.google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.ContributionB\x03\xE0A\x03H\x00\x12(\x0A\x05error\x18\x05 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03H\x00\x1A\x92\x02\x0A\x0CContribution\x12\x93\x01\x0A\x0Ctop_prefixes\x18\x01 \x03(\x0B2x.google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution.PrefixContributionB\x03\xE0A\x03\x1Al\x0A\x12PrefixContribution\x12\x13\x0A\x06prefix\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x1F\x0A\x12total_egress_bytes\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03B\x09\x0A\x07details\x1A\xAB\x06\x0A\x15ThrottledRequestSpike\x12\x1F\x0A\x12throttled_requests\x18\x01 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12q\x0A\x0Btop_buckets\x18\x03 \x03(\x0B2W.google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContributionB\x03\xE0A\x03\x1A\xDB\x04\x0A\x12BucketContribution\x125\x0A\x06bucket\x18\x01 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Bucket\x12\x1F\x0A\x12throttled_requests\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03\x12\x81\x01\x0A\x0Ccontribution\x18\x04 \x01(\x0B2d.google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.ContributionB\x03\xE0A\x03H\x00\x12(\x0A\x05error\x18\x05 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03H\x00\x1A\x91\x02\x0A\x0CContribution\x12\x92\x01\x0A\x0Ctop_prefixes\x18\x01 \x03(\x0B2w.google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution.PrefixContributionB\x03\xE0A\x03\x1Al\x0A\x12PrefixContribution\x12\x13\x0A\x06prefix\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x1F\x0A\x12throttled_requests\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03B\x09\x0A\x07details\x1A\xA7\x03\x0A\x17StorageGrowthAboveTrend\x12'\x0A\x1Atotal_storage_growth_bytes\x18\x01 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x02 \x01(\x01B\x03\xE0A\x03\x12s\x0A\x0Btop_buckets\x18\x03 \x03(\x0B2Y.google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrend.BucketContributionB\x03\xE0A\x03\x1A\xCB\x01\x0A\x12BucketContribution\x125\x0A\x06bucket\x18\x01 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Dstorage.googleapis.com/Bucket\x12'\x0A\x1Atotal_storage_growth_bytes\x18\x02 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13percentage_increase\x18\x03 \x01(\x01B\x03\xE0A\x03\x12(\x0A\x05error\x18\x05 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03H\x00B\x09\x0A\x07details:\xB0\x01\xEAA\xAC\x01\x0A*storage.googleapis.com/IntelligenceFinding\x12Sprojects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}*\x14intelligenceFindings2\x13intelligenceFindingB\x1E\x0A\x1Cintelligence_finding_details\"\x8D\x03\x0A\x1BIntelligenceFindingRevision\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12E\x0A\x08snapshot\x18\x02 \x01(\x0B2..google.storage.control.v2.IntelligenceFindingB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03:\xDD\x01\xEAA\xD9\x01\x0A2storage.googleapis.com/IntelligenceFindingRevision\x12hprojects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}*\x1CintelligenceFindingRevisions2\x1BintelligenceFindingRevision\"a\x0A\x1DGetIntelligenceFindingRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*storage.googleapis.com/IntelligenceFinding\"\xAB\x01\x0A\x1FListIntelligenceFindingsRequest\x12B\x0A\x06parent\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x12*storage.googleapis.com/IntelligenceFinding\x12\x13\x0A\x06filter\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x8A\x01\x0A ListIntelligenceFindingsResponse\x12M\x0A\x15intelligence_findings\x18\x01 \x03(\x0B2..google.storage.control.v2.IntelligenceFinding\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xB7\x02\x0A\$SummarizeIntelligenceFindingsRequest\x12\x13\x0A\x06parent\x18\x01 \x01(\x09B\x03\xE0A\x02\x12j\x0A\x0Eresource_scope\x18\x02 \x01(\x0E2M.google.storage.control.v2.SummarizeIntelligenceFindingsRequest.ResourceScopeB\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x04 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"H\x0A\x0DResourceScope\x12\x1E\x0A\x1ARESOURCE_SCOPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06PARENT\x10\x01\x12\x0B\x0A\x07PROJECT\x10\x02\"\x86\x01\x0A%SummarizeIntelligenceFindingsResponse\x12D\x0A\x11finding_summaries\x18\x01 \x03(\x0B2).google.storage.control.v2.FindingSummary\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"q\x0A%GetIntelligenceFindingRevisionRequest\x12H\x0A\x04name\x18\x01 \x01(\x09B:\xE0A\x02\xFAA4\x0A2storage.googleapis.com/IntelligenceFindingRevision\"\xA6\x01\x0A'ListIntelligenceFindingRevisionsRequest\x12J\x0A\x06parent\x18\x01 \x01(\x09B:\xE0A\x02\xFAA4\x122storage.googleapis.com/IntelligenceFindingRevision\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xA3\x01\x0A(ListIntelligenceFindingRevisionsResponse\x12^\x0A\x1Eintelligence_finding_revisions\x18\x01 \x03(\x0B26.google.storage.control.v2.IntelligenceFindingRevision\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xBA\x05\x0A\x0EFindingSummary\x129\x0A\x04type\x18\x01 \x01(\x0E2&.google.storage.control.v2.FindingTypeB\x03\xE0A\x03\x12A\x0A\x08category\x18\x02 \x01(\x0E2*.google.storage.control.v2.FindingCategoryB\x03\xE0A\x03\x12\x1C\x0A\x0Ftarget_resource\x18\x04 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12<\x0A\x08severity\x18\x07 \x01(\x0E2*.google.storage.control.v2.FindingSeverity\x12V\x0A\x0Fsummary_details\x18\x08 \x03(\x0B28.google.storage.control.v2.FindingSummary.SummaryDetailsB\x03\xE0A\x03\x1A\x89\x02\x0A\x0ESummaryDetails\x12\x0F\x0A\x05count\x18\x01 \x01(\x03H\x00\x12\x14\x0A\x0Apercentage\x18\x02 \x01(\x02H\x00\x12a\x0A\x0Dresource_type\x18\x03 \x01(\x0E2E.google.storage.control.v2.FindingSummary.SummaryDetails.ResourceTypeB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x03\"F\x0A\x0CResourceType\x12\x1D\x0A\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PROJECT\x10\x01\x12\x0A\x0A\x06BUCKET\x10\x02B\x0B\x0A\x09magnitude*\xEF\x01\x0A\x0BFindingType\x12\x1C\x0A\x18FINDING_TYPE_UNSPECIFIED\x10\x00\x12?\x0A;FINDING_TYPE_COLDLINE_AND_ARCHIVAL_STORAGE_OPERATIONS_SPIKE\x10\x01\x12(\x0A\$FINDING_TYPE_THROTTLED_REQUEST_SPIKE\x10\x02\x12*\x0A&FINDING_TYPE_CROSS_REGION_EGRESS_SPIKE\x10\x03\x12+\x0A'FINDING_TYPE_STORAGE_GROWTH_ABOVE_TREND\x10\x04*{\x0A\x0FFindingCategory\x12 \x0A\x1CFINDING_CATEGORY_UNSPECIFIED\x10\x00\x12\$\x0A FINDING_CATEGORY_DATA_MANAGEMENT\x10\x01\x12 \x0A\x1CFINDING_CATEGORY_PERFORMANCE\x10\x02*R\x0A\x0FFindingSeverity\x12 \x0A\x1CFINDING_SEVERITY_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19FINDING_SEVERITY_CRITICAL\x10\x012\xD5A\x0A\x0EStorageControl\x12\xD3\x01\x0A\x0CCreateFolder\x12..google.storage.control.v2.CreateFolderRequest\x1A!.google.storage.control.v2.Folder\"p\xDAA\x17parent,folder,folder_id\x82\xD3\xE4\x93\x023\")/v2/{parent=projects/*/buckets/*}/folders:\x06folder\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xC1\x01\x0A\x0CDeleteFolder\x12..google.storage.control.v2.DeleteFolderRequest\x1A\x16.google.protobuf.Empty\"i\xDAA\x04name\x82\xD3\xE4\x93\x02,**/v2/{name=projects/*/buckets/*/folders/**}\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xC6\x01\x0A\x09GetFolder\x12+.google.storage.control.v2.GetFolderRequest\x1A!.google.storage.control.v2.Folder\"i\xDAA\x04name\x82\xD3\xE4\x93\x02,\x12*/v2/{name=projects/*/buckets/*/folders/**}\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xC5\x01\x0A\x0BListFolders\x12-.google.storage.control.v2.ListFoldersRequest\x1A..google.storage.control.v2.ListFoldersResponse\"W\xDAA\x06parent\x82\xD3\xE4\x93\x02+\x12)/v2/{parent=projects/*/buckets/*}/folders\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\x8A\x02\x0A\x0CRenameFolder\x12..google.storage.control.v2.RenameFolderRequest\x1A\x1D.google.longrunning.Operation\"\xAA\x01\xCAA\x1E\x0A\x06Folder\x12\x14RenameFolderMetadata\xDAA\x1Aname,destination_folder_id\x82\xD3\xE4\x93\x026\"1/v2/{name=projects/*/buckets/*/folders/**}:rename:\x01*\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA7\x02\x0A\x15DeleteFolderRecursive\x127.google.storage.control.v2.DeleteFolderRecursiveRequest\x1A\x1D.google.longrunning.Operation\"\xB5\x01\xCAA6\x0A\x15google.protobuf.Empty\x12\x1DDeleteFolderRecursiveMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02?\":/v2/{name=projects/*/buckets/*/folders/**}:deleteRecursive:\x01*\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xDE\x01\x0A\x10GetStorageLayout\x122.google.storage.control.v2.GetStorageLayoutRequest\x1A(.google.storage.control.v2.StorageLayout\"l\xDAA\x04name\x82\xD3\xE4\x93\x02/\x12-/v2/{name=projects/*/buckets/*/storageLayout}\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xBF\x01\x0A\x13CreateManagedFolder\x125.google.storage.control.v2.CreateManagedFolderRequest\x1A(.google.storage.control.v2.ManagedFolder\"G\xDAA'parent,managed_folder,managed_folder_id\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\x9D\x01\x0A\x13DeleteManagedFolder\x125.google.storage.control.v2.DeleteManagedFolderRequest\x1A\x16.google.protobuf.Empty\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA9\x01\x0A\x10GetManagedFolder\x122.google.storage.control.v2.GetManagedFolderRequest\x1A(.google.storage.control.v2.ManagedFolder\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA9\x01\x0A\x12ListManagedFolders\x124.google.storage.control.v2.ListManagedFoldersRequest\x1A5.google.storage.control.v2.ListManagedFoldersResponse\"&\xDAA\x06parent\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xD4\x01\x0A\x13UpdateManagedFolder\x125.google.storage.control.v2.UpdateManagedFolderRequest\x1A(.google.storage.control.v2.ManagedFolder\"\\\xDAA\x1Amanaged_folder,update_mask\x8A\xD3\xE4\x93\x029\x127\x0A\x13managed_folder.name\x12 {bucket=projects/*/buckets/*}/**\x12\xD1\x01\x0A\x13CreateAnywhereCache\x125.google.storage.control.v2.CreateAnywhereCacheRequest\x1A\x1D.google.longrunning.Operation\"d\xCAA,\x0A\x0DAnywhereCache\x12\x1BCreateAnywhereCacheMetadata\xDAA\x15parent,anywhere_cache\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xF9\x01\x0A\x13UpdateAnywhereCache\x125.google.storage.control.v2.UpdateAnywhereCacheRequest\x1A\x1D.google.longrunning.Operation\"\x8B\x01\xCAA,\x0A\x0DAnywhereCache\x12\x1BUpdateAnywhereCacheMetadata\xDAA\x1Aanywhere_cache,update_mask\x8A\xD3\xE4\x93\x029\x127\x0A\x13anywhere_cache.name\x12 {bucket=projects/*/buckets/*}/**\x12\xB1\x01\x0A\x14DisableAnywhereCache\x126.google.storage.control.v2.DisableAnywhereCacheRequest\x1A(.google.storage.control.v2.AnywhereCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xAD\x01\x0A\x12PauseAnywhereCache\x124.google.storage.control.v2.PauseAnywhereCacheRequest\x1A(.google.storage.control.v2.AnywhereCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xAF\x01\x0A\x13ResumeAnywhereCache\x125.google.storage.control.v2.ResumeAnywhereCacheRequest\x1A(.google.storage.control.v2.AnywhereCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA9\x01\x0A\x10GetAnywhereCache\x122.google.storage.control.v2.GetAnywhereCacheRequest\x1A(.google.storage.control.v2.AnywhereCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA9\x01\x0A\x12ListAnywhereCaches\x124.google.storage.control.v2.ListAnywhereCachesRequest\x1A5.google.storage.control.v2.ListAnywhereCachesResponse\"&\xDAA\x06parent\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xC2\x01\x0A\x10CreateRapidCache\x122.google.storage.control.v2.CreateRapidCacheRequest\x1A\x1D.google.longrunning.Operation\"[\xCAA&\x0A\x0ARapidCache\x12\x18CreateRapidCacheMetadata\xDAA\x12parent,rapid_cache\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xE6\x01\x0A\x10UpdateRapidCache\x122.google.storage.control.v2.UpdateRapidCacheRequest\x1A\x1D.google.longrunning.Operation\"\x7F\xCAA&\x0A\x0ARapidCache\x12\x18UpdateRapidCacheMetadata\xDAA\x17rapid_cache,update_mask\x8A\xD3\xE4\x93\x026\x124\x0A\x10rapid_cache.name\x12 {bucket=projects/*/buckets/*}/**\x12\xA0\x01\x0A\x0DGetRapidCache\x12/.google.storage.control.v2.GetRapidCacheRequest\x1A%.google.storage.control.v2.RapidCache\"7\xDAA\x04name\x8A\xD3\xE4\x93\x02*\x12(\x0A\x04name\x12 {bucket=projects/*/buckets/*}/**\x12\xA0\x01\x0A\x0FListRapidCaches\x121.google.storage.control.v2.ListRapidCachesRequest\x1A2.google.storage.control.v2.ListRapidCachesResponse\"&\xDAA\x06parent\x8A\xD3\xE4\x93\x02\x17\x12\x15\x0A\x06parent\x12\x0B{bucket=**}\x12\xD2\x01\x0A\x1CGetProjectIntelligenceConfig\x12>.google.storage.control.v2.GetProjectIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"C\xDAA\x04name\x82\xD3\xE4\x93\x026\x124/v2/{name=projects/*/locations/*/intelligenceConfig}\x12\x9D\x02\x0A\x1FUpdateProjectIntelligenceConfig\x12A.google.storage.control.v2.UpdateProjectIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"\x87\x01\xDAA\x1Fintelligence_config,update_mask\x82\xD3\xE4\x93\x02_2H/v2/{intelligence_config.name=projects/*/locations/*/intelligenceConfig}:\x13intelligence_config\x12\xCF\x01\x0A\x1BGetFolderIntelligenceConfig\x12=.google.storage.control.v2.GetFolderIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"B\xDAA\x04name\x82\xD3\xE4\x93\x025\x123/v2/{name=folders/*/locations/*/intelligenceConfig}\x12\x9A\x02\x0A\x1EUpdateFolderIntelligenceConfig\x12@.google.storage.control.v2.UpdateFolderIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"\x86\x01\xDAA\x1Fintelligence_config,update_mask\x82\xD3\xE4\x93\x02^2G/v2/{intelligence_config.name=folders/*/locations/*/intelligenceConfig}:\x13intelligence_config\x12\xE1\x01\x0A!GetOrganizationIntelligenceConfig\x12C.google.storage.control.v2.GetOrganizationIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"H\xDAA\x04name\x82\xD3\xE4\x93\x02;\x129/v2/{name=organizations/*/locations/*/intelligenceConfig}\x12\xAC\x02\x0A\$UpdateOrganizationIntelligenceConfig\x12F.google.storage.control.v2.UpdateOrganizationIntelligenceConfigRequest\x1A-.google.storage.control.v2.IntelligenceConfig\"\x8C\x01\xDAA\x1Fintelligence_config,update_mask\x82\xD3\xE4\x93\x02d2M/v2/{intelligence_config.name=organizations/*/locations/*/intelligenceConfig}:\x13intelligence_config\x12\xA3\x01\x0A\x0CGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"X\xDAA\x08resource\x8A\xD3\xE4\x93\x02G\x12\x17\x0A\x08resource\x12\x0B{bucket=**}\x12,\x0A\x08resource\x12 {bucket=projects/*/buckets/*}/**\x12\xAA\x01\x0A\x0CSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"_\xDAA\x0Fresource,policy\x8A\xD3\xE4\x93\x02G\x12\x17\x0A\x08resource\x12\x0B{bucket=**}\x12,\x0A\x08resource\x12 {bucket=projects/*/buckets/*}/**\x12\x96\x02\x0A\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1A).google.iam.v1.TestIamPermissionsResponse\"\xAA\x01\xDAA\x14resource,permissions\x8A\xD3\xE4\x93\x02\x8C\x01\x12\x17\x0A\x08resource\x12\x0B{bucket=**}\x124\x0A\x08resource\x12({bucket=projects/*/buckets/*}/objects/**\x12;\x0A\x08resource\x12/{bucket=projects/*/buckets/*}/managedFolders/**\x12\xCB\x01\x0A\x16GetIntelligenceFinding\x128.google.storage.control.v2.GetIntelligenceFindingRequest\x1A..google.storage.control.v2.IntelligenceFinding\"G\xDAA\x04name\x82\xD3\xE4\x93\x02:\x128/v2/{name=projects/*/locations/*/intelligenceFindings/*}\x12\xDE\x01\x0A\x18ListIntelligenceFindings\x12:.google.storage.control.v2.ListIntelligenceFindingsRequest\x1A;.google.storage.control.v2.ListIntelligenceFindingsResponse\"I\xDAA\x06parent\x82\xD3\xE4\x93\x02:\x128/v2/{parent=projects/*/locations/*}/intelligenceFindings\x12\x89\x03\x0A\x1DSummarizeIntelligenceFindings\x12?.google.storage.control.v2.SummarizeIntelligenceFindingsRequest\x1A@.google.storage.control.v2.SummarizeIntelligenceFindingsResponse\"\xE4\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xD4\x01\x12B/v2/{parent=projects/*/locations/*}/intelligenceFindings:summarizeZC\x12A/v2/{parent=folders/*/locations/*}/intelligenceFindings:summarizeZI\x12G/v2/{parent=organizations/*/locations/*}/intelligenceFindings:summarize\x12\xEF\x01\x0A\x1EGetIntelligenceFindingRevision\x12@.google.storage.control.v2.GetIntelligenceFindingRevisionRequest\x1A6.google.storage.control.v2.IntelligenceFindingRevision\"S\xDAA\x04name\x82\xD3\xE4\x93\x02F\x12D/v2/{name=projects/*/locations/*/intelligenceFindings/*/revisions/*}\x12\x82\x02\x0A ListIntelligenceFindingRevisions\x12B.google.storage.control.v2.ListIntelligenceFindingRevisionsRequest\x1AC.google.storage.control.v2.ListIntelligenceFindingRevisionsResponse\"U\xDAA\x06parent\x82\xD3\xE4\x93\x02F\x12D/v2/{parent=projects/*/locations/*/intelligenceFindings/*}/revisions\x1A\xA7\x02\xCAA\x16storage.googleapis.com\xD2A\x8A\x02https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/devstorage.full_control,https://www.googleapis.com/auth/devstorage.read_only,https://www.googleapis.com/auth/devstorage.read_writeB\xA6\x02\x0A\x1Dcom.google.storage.control.v2B\x13StorageControlProtoP\x01Z=cloud.google.com/go/storage/control/apiv2/controlpb;controlpb\xAA\x02\x1FGoogle.Cloud.Storage.Control.V2\xCA\x02\x1FGoogle\\Cloud\\Storage\\Control\\V2\xEA\x02#Google::Cloud::Storage::Control::V2\xEAAD\x0A\x1Dstorage.googleapis.com/Bucket\x12#projects/{project}/buckets/{bucket}b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/AnywhereCache.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/AnywhereCache.php deleted file mode 100644 index 8e3334704463..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/AnywhereCache.php +++ /dev/null @@ -1,435 +0,0 @@ -google.storage.control.v2.AnywhereCache - */ -class AnywhereCache extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The resource name of this AnywhereCache. - * Format: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Immutable. The zone in which the cache instance is running. For example, - * us-central1-a. - * - * Generated from protobuf field string zone = 10 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $zone = ''; - /** - * Cache entry TTL (ranges between 1h to 7d). This is a cache-level config - * that defines how long a cache entry can live. Default ttl value (24hrs) - * is applied if not specified in the create request. TTL must be in whole - * seconds. - * - * Generated from protobuf field .google.protobuf.Duration ttl = 3; - */ - protected $ttl = null; - /** - * Cache admission policy. Valid policies includes: - * `admit-on-first-miss` and `admit-on-second-miss`. Defaults to - * `admit-on-first-miss`. Default value is applied if not specified in the - * create request. - * - * Generated from protobuf field string admission_policy = 9; - */ - protected $admission_policy = ''; - /** - * Output only. Cache state including `running`, `creating`, `disabled` and - * `paused`. - * - * Generated from protobuf field string state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = ''; - /** - * Output only. Time when Anywhere cache instance is allocated. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when Anywhere cache instance is last updated, including - * creation. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. True if there is an active update operation against this cache - * instance. Subsequential update requests will be rejected if this field is - * true. Output only. - * - * Generated from protobuf field bool pending_update = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $pending_update = false; - /** - * Optional. Specifies whether objects are ingested into the cache upon write. - * Defaults to false. - * - * Generated from protobuf field optional bool ingest_on_write = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ingest_on_write = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Immutable. The resource name of this AnywhereCache. - * Format: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * @type string $zone - * Immutable. The zone in which the cache instance is running. For example, - * us-central1-a. - * @type \Google\Protobuf\Duration $ttl - * Cache entry TTL (ranges between 1h to 7d). This is a cache-level config - * that defines how long a cache entry can live. Default ttl value (24hrs) - * is applied if not specified in the create request. TTL must be in whole - * seconds. - * @type string $admission_policy - * Cache admission policy. Valid policies includes: - * `admit-on-first-miss` and `admit-on-second-miss`. Defaults to - * `admit-on-first-miss`. Default value is applied if not specified in the - * create request. - * @type string $state - * Output only. Cache state including `running`, `creating`, `disabled` and - * `paused`. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when Anywhere cache instance is allocated. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time when Anywhere cache instance is last updated, including - * creation. - * @type bool $pending_update - * Output only. True if there is an active update operation against this cache - * instance. Subsequential update requests will be rejected if this field is - * true. Output only. - * @type bool $ingest_on_write - * Optional. Specifies whether objects are ingested into the cache upon write. - * Defaults to false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The resource name of this AnywhereCache. - * Format: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. The resource name of this AnywhereCache. - * Format: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The zone in which the cache instance is running. For example, - * us-central1-a. - * - * Generated from protobuf field string zone = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getZone() - { - return $this->zone; - } - - /** - * Immutable. The zone in which the cache instance is running. For example, - * us-central1-a. - * - * Generated from protobuf field string zone = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setZone($var) - { - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Cache entry TTL (ranges between 1h to 7d). This is a cache-level config - * that defines how long a cache entry can live. Default ttl value (24hrs) - * is applied if not specified in the create request. TTL must be in whole - * seconds. - * - * Generated from protobuf field .google.protobuf.Duration ttl = 3; - * @return \Google\Protobuf\Duration|null - */ - public function getTtl() - { - return $this->ttl; - } - - public function hasTtl() - { - return isset($this->ttl); - } - - public function clearTtl() - { - unset($this->ttl); - } - - /** - * Cache entry TTL (ranges between 1h to 7d). This is a cache-level config - * that defines how long a cache entry can live. Default ttl value (24hrs) - * is applied if not specified in the create request. TTL must be in whole - * seconds. - * - * Generated from protobuf field .google.protobuf.Duration ttl = 3; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTtl($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->ttl = $var; - - return $this; - } - - /** - * Cache admission policy. Valid policies includes: - * `admit-on-first-miss` and `admit-on-second-miss`. Defaults to - * `admit-on-first-miss`. Default value is applied if not specified in the - * create request. - * - * Generated from protobuf field string admission_policy = 9; - * @return string - */ - public function getAdmissionPolicy() - { - return $this->admission_policy; - } - - /** - * Cache admission policy. Valid policies includes: - * `admit-on-first-miss` and `admit-on-second-miss`. Defaults to - * `admit-on-first-miss`. Default value is applied if not specified in the - * create request. - * - * Generated from protobuf field string admission_policy = 9; - * @param string $var - * @return $this - */ - public function setAdmissionPolicy($var) - { - GPBUtil::checkString($var, True); - $this->admission_policy = $var; - - return $this; - } - - /** - * Output only. Cache state including `running`, `creating`, `disabled` and - * `paused`. - * - * Generated from protobuf field string state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Cache state including `running`, `creating`, `disabled` and - * `paused`. - * - * Generated from protobuf field string state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkString($var, True); - $this->state = $var; - - return $this; - } - - /** - * Output only. Time when Anywhere cache instance is allocated. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when Anywhere cache instance is allocated. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when Anywhere cache instance is last updated, including - * creation. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time when Anywhere cache instance is last updated, including - * creation. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. True if there is an active update operation against this cache - * instance. Subsequential update requests will be rejected if this field is - * true. Output only. - * - * Generated from protobuf field bool pending_update = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getPendingUpdate() - { - return $this->pending_update; - } - - /** - * Output only. True if there is an active update operation against this cache - * instance. Subsequential update requests will be rejected if this field is - * true. Output only. - * - * Generated from protobuf field bool pending_update = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setPendingUpdate($var) - { - GPBUtil::checkBool($var); - $this->pending_update = $var; - - return $this; - } - - /** - * Optional. Specifies whether objects are ingested into the cache upon write. - * Defaults to false. - * - * Generated from protobuf field optional bool ingest_on_write = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIngestOnWrite() - { - return isset($this->ingest_on_write) ? $this->ingest_on_write : false; - } - - public function hasIngestOnWrite() - { - return isset($this->ingest_on_write); - } - - public function clearIngestOnWrite() - { - unset($this->ingest_on_write); - } - - /** - * Optional. Specifies whether objects are ingested into the cache upon write. - * Defaults to false. - * - * Generated from protobuf field optional bool ingest_on_write = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIngestOnWrite($var) - { - GPBUtil::checkBool($var); - $this->ingest_on_write = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CommonLongRunningOperationMetadata.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CommonLongRunningOperationMetadata.php deleted file mode 100644 index 02c9517f2d7d..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CommonLongRunningOperationMetadata.php +++ /dev/null @@ -1,273 +0,0 @@ -google.storage.control.v2.CommonLongRunningOperationMetadata - */ -class CommonLongRunningOperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. The time the operation was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The type of operation invoked. - * - * Generated from protobuf field string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $type = ''; - /** - * Output only. Identifies whether the user has requested cancellation. - * - * Generated from protobuf field bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requested_cancellation = false; - /** - * Output only. The estimated progress of the operation in percentage [0, - * 100]. The value -1 means the progress is unknown. - * - * Generated from protobuf field int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $progress_percent = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the operation finished running. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time the operation was last modified. - * @type string $type - * Output only. The type of operation invoked. - * @type bool $requested_cancellation - * Output only. Identifies whether the user has requested cancellation. - * @type int $progress_percent - * Output only. The estimated progress of the operation in percentage [0, - * 100]. The value -1 means the progress is unknown. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. The time the operation was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time the operation was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The type of operation invoked. - * - * Generated from protobuf field string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Output only. The type of operation invoked. - * - * Generated from protobuf field string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Output only. Identifies whether the user has requested cancellation. - * - * Generated from protobuf field bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getRequestedCancellation() - { - return $this->requested_cancellation; - } - - /** - * Output only. Identifies whether the user has requested cancellation. - * - * Generated from protobuf field bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setRequestedCancellation($var) - { - GPBUtil::checkBool($var); - $this->requested_cancellation = $var; - - return $this; - } - - /** - * Output only. The estimated progress of the operation in percentage [0, - * 100]. The value -1 means the progress is unknown. - * - * Generated from protobuf field int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getProgressPercent() - { - return $this->progress_percent; - } - - /** - * Output only. The estimated progress of the operation in percentage [0, - * 100]. The value -1 means the progress is unknown. - * - * Generated from protobuf field int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setProgressPercent($var) - { - GPBUtil::checkInt32($var); - $this->progress_percent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateAnywhereCacheMetadata.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateAnywhereCacheMetadata.php deleted file mode 100644 index e821b04e5914..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateAnywhereCacheMetadata.php +++ /dev/null @@ -1,322 +0,0 @@ -google.storage.control.v2.CreateAnywhereCacheMetadata - */ -class CreateAnywhereCacheMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Generic metadata for the long running operation. - * - * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - */ - protected $common_metadata = null; - /** - * Anywhere Cache ID. - * - * Generated from protobuf field optional string anywhere_cache_id = 2; - */ - protected $anywhere_cache_id = null; - /** - * The zone in which the cache instance is running. For example, - * us-central1-a. - * - * Generated from protobuf field optional string zone = 6; - */ - protected $zone = null; - /** - * Anywhere Cache entry's TTL. A cache-level config that is applied to all new - * cache entries on admission. Default ttl value (24hrs) is applied if not - * specified in the create request. - * - * Generated from protobuf field optional .google.protobuf.Duration ttl = 3; - */ - protected $ttl = null; - /** - * Anywhere Cache entry Admission Policy in kebab-case (e.g., - * "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is - * applied if not specified in the create request. - * - * Generated from protobuf field optional string admission_policy = 5; - */ - protected $admission_policy = null; - /** - * Optional. Specifies whether objects are ingested into the cache upon write. - * Defaults to false. - * - * Generated from protobuf field optional bool ingest_on_write = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ingest_on_write = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $common_metadata - * Generic metadata for the long running operation. - * @type string $anywhere_cache_id - * Anywhere Cache ID. - * @type string $zone - * The zone in which the cache instance is running. For example, - * us-central1-a. - * @type \Google\Protobuf\Duration $ttl - * Anywhere Cache entry's TTL. A cache-level config that is applied to all new - * cache entries on admission. Default ttl value (24hrs) is applied if not - * specified in the create request. - * @type string $admission_policy - * Anywhere Cache entry Admission Policy in kebab-case (e.g., - * "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is - * applied if not specified in the create request. - * @type bool $ingest_on_write - * Optional. Specifies whether objects are ingested into the cache upon write. - * Defaults to false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Generic metadata for the long running operation. - * - * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * @return \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata|null - */ - public function getCommonMetadata() - { - return $this->common_metadata; - } - - public function hasCommonMetadata() - { - return isset($this->common_metadata); - } - - public function clearCommonMetadata() - { - unset($this->common_metadata); - } - - /** - * Generic metadata for the long running operation. - * - * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * @param \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $var - * @return $this - */ - public function setCommonMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata::class); - $this->common_metadata = $var; - - return $this; - } - - /** - * Anywhere Cache ID. - * - * Generated from protobuf field optional string anywhere_cache_id = 2; - * @return string - */ - public function getAnywhereCacheId() - { - return isset($this->anywhere_cache_id) ? $this->anywhere_cache_id : ''; - } - - public function hasAnywhereCacheId() - { - return isset($this->anywhere_cache_id); - } - - public function clearAnywhereCacheId() - { - unset($this->anywhere_cache_id); - } - - /** - * Anywhere Cache ID. - * - * Generated from protobuf field optional string anywhere_cache_id = 2; - * @param string $var - * @return $this - */ - public function setAnywhereCacheId($var) - { - GPBUtil::checkString($var, True); - $this->anywhere_cache_id = $var; - - return $this; - } - - /** - * The zone in which the cache instance is running. For example, - * us-central1-a. - * - * Generated from protobuf field optional string zone = 6; - * @return string - */ - public function getZone() - { - return isset($this->zone) ? $this->zone : ''; - } - - public function hasZone() - { - return isset($this->zone); - } - - public function clearZone() - { - unset($this->zone); - } - - /** - * The zone in which the cache instance is running. For example, - * us-central1-a. - * - * Generated from protobuf field optional string zone = 6; - * @param string $var - * @return $this - */ - public function setZone($var) - { - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Anywhere Cache entry's TTL. A cache-level config that is applied to all new - * cache entries on admission. Default ttl value (24hrs) is applied if not - * specified in the create request. - * - * Generated from protobuf field optional .google.protobuf.Duration ttl = 3; - * @return \Google\Protobuf\Duration|null - */ - public function getTtl() - { - return $this->ttl; - } - - public function hasTtl() - { - return isset($this->ttl); - } - - public function clearTtl() - { - unset($this->ttl); - } - - /** - * Anywhere Cache entry's TTL. A cache-level config that is applied to all new - * cache entries on admission. Default ttl value (24hrs) is applied if not - * specified in the create request. - * - * Generated from protobuf field optional .google.protobuf.Duration ttl = 3; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTtl($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->ttl = $var; - - return $this; - } - - /** - * Anywhere Cache entry Admission Policy in kebab-case (e.g., - * "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is - * applied if not specified in the create request. - * - * Generated from protobuf field optional string admission_policy = 5; - * @return string - */ - public function getAdmissionPolicy() - { - return isset($this->admission_policy) ? $this->admission_policy : ''; - } - - public function hasAdmissionPolicy() - { - return isset($this->admission_policy); - } - - public function clearAdmissionPolicy() - { - unset($this->admission_policy); - } - - /** - * Anywhere Cache entry Admission Policy in kebab-case (e.g., - * "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is - * applied if not specified in the create request. - * - * Generated from protobuf field optional string admission_policy = 5; - * @param string $var - * @return $this - */ - public function setAdmissionPolicy($var) - { - GPBUtil::checkString($var, True); - $this->admission_policy = $var; - - return $this; - } - - /** - * Optional. Specifies whether objects are ingested into the cache upon write. - * Defaults to false. - * - * Generated from protobuf field optional bool ingest_on_write = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIngestOnWrite() - { - return isset($this->ingest_on_write) ? $this->ingest_on_write : false; - } - - public function hasIngestOnWrite() - { - return isset($this->ingest_on_write); - } - - public function clearIngestOnWrite() - { - unset($this->ingest_on_write); - } - - /** - * Optional. Specifies whether objects are ingested into the cache upon write. - * Defaults to false. - * - * Generated from protobuf field optional bool ingest_on_write = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIngestOnWrite($var) - { - GPBUtil::checkBool($var); - $this->ingest_on_write = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateAnywhereCacheRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateAnywhereCacheRequest.php deleted file mode 100644 index 2355a5e824a7..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateAnywhereCacheRequest.php +++ /dev/null @@ -1,189 +0,0 @@ -google.storage.control.v2.CreateAnywhereCacheRequest - */ -class CreateAnywhereCacheRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The bucket to which this cache belongs. - * Format: `projects/{project}/buckets/{bucket}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Properties of the Anywhere Cache instance being created. - * The parent bucket name is specified in the `parent` field. Server uses the - * default value of `ttl` or `admission_policy` if not specified in - * request. - * - * Generated from protobuf field .google.storage.control.v2.AnywhereCache anywhere_cache = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $anywhere_cache = null; - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The bucket to which this cache belongs. - * Format: `projects/{project}/buckets/{bucket}` - * Please see {@see StorageControlClient::bucketName()} for help formatting this field. - * @param \Google\Cloud\Storage\Control\V2\AnywhereCache $anywhereCache Required. Properties of the Anywhere Cache instance being created. - * The parent bucket name is specified in the `parent` field. Server uses the - * default value of `ttl` or `admission_policy` if not specified in - * request. - * - * @return \Google\Cloud\Storage\Control\V2\CreateAnywhereCacheRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Storage\Control\V2\AnywhereCache $anywhereCache): self - { - return (new self()) - ->setParent($parent) - ->setAnywhereCache($anywhereCache); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The bucket to which this cache belongs. - * Format: `projects/{project}/buckets/{bucket}` - * @type \Google\Cloud\Storage\Control\V2\AnywhereCache $anywhere_cache - * Required. Properties of the Anywhere Cache instance being created. - * The parent bucket name is specified in the `parent` field. Server uses the - * default value of `ttl` or `admission_policy` if not specified in - * request. - * @type string $request_id - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The bucket to which this cache belongs. - * Format: `projects/{project}/buckets/{bucket}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The bucket to which this cache belongs. - * Format: `projects/{project}/buckets/{bucket}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Properties of the Anywhere Cache instance being created. - * The parent bucket name is specified in the `parent` field. Server uses the - * default value of `ttl` or `admission_policy` if not specified in - * request. - * - * Generated from protobuf field .google.storage.control.v2.AnywhereCache anywhere_cache = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Storage\Control\V2\AnywhereCache|null - */ - public function getAnywhereCache() - { - return $this->anywhere_cache; - } - - public function hasAnywhereCache() - { - return isset($this->anywhere_cache); - } - - public function clearAnywhereCache() - { - unset($this->anywhere_cache); - } - - /** - * Required. Properties of the Anywhere Cache instance being created. - * The parent bucket name is specified in the `parent` field. Server uses the - * default value of `ttl` or `admission_policy` if not specified in - * request. - * - * Generated from protobuf field .google.storage.control.v2.AnywhereCache anywhere_cache = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Storage\Control\V2\AnywhereCache $var - * @return $this - */ - public function setAnywhereCache($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\AnywhereCache::class); - $this->anywhere_cache = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateFolderRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateFolderRequest.php deleted file mode 100644 index 54f201c3a8fe..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateFolderRequest.php +++ /dev/null @@ -1,280 +0,0 @@ -google.storage.control.v2.CreateFolderRequest - */ -class CreateFolderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the bucket in which the folder will reside. The bucket - * must be a hierarchical namespace enabled bucket. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Properties of the new folder being created. - * The bucket and name of the folder are specified in the parent and folder_id - * fields, respectively. Populating those fields in `folder` will result in an - * error. - * - * Generated from protobuf field .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $folder = null; - /** - * Required. The full name of a folder, including all its parent folders. - * Folders use single '/' characters as a delimiter. - * The folder_id must end with a slash. - * For example, the folder_id of "books/biographies/" would create a new - * "biographies/" folder under the "books/" folder. - * - * Generated from protobuf field string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $folder_id = ''; - /** - * Optional. If true, parent folder doesn't have to be present and all missing - * ancestor folders will be created atomically. - * - * Generated from protobuf field bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $recursive = false; - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $parent Required. Name of the bucket in which the folder will reside. The bucket - * must be a hierarchical namespace enabled bucket. Please see - * {@see StorageControlClient::bucketName()} for help formatting this field. - * @param \Google\Cloud\Storage\Control\V2\Folder $folder Required. Properties of the new folder being created. - * The bucket and name of the folder are specified in the parent and folder_id - * fields, respectively. Populating those fields in `folder` will result in an - * error. - * @param string $folderId Required. The full name of a folder, including all its parent folders. - * Folders use single '/' characters as a delimiter. - * The folder_id must end with a slash. - * For example, the folder_id of "books/biographies/" would create a new - * "biographies/" folder under the "books/" folder. - * - * @return \Google\Cloud\Storage\Control\V2\CreateFolderRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Storage\Control\V2\Folder $folder, string $folderId): self - { - return (new self()) - ->setParent($parent) - ->setFolder($folder) - ->setFolderId($folderId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Name of the bucket in which the folder will reside. The bucket - * must be a hierarchical namespace enabled bucket. - * @type \Google\Cloud\Storage\Control\V2\Folder $folder - * Required. Properties of the new folder being created. - * The bucket and name of the folder are specified in the parent and folder_id - * fields, respectively. Populating those fields in `folder` will result in an - * error. - * @type string $folder_id - * Required. The full name of a folder, including all its parent folders. - * Folders use single '/' characters as a delimiter. - * The folder_id must end with a slash. - * For example, the folder_id of "books/biographies/" would create a new - * "biographies/" folder under the "books/" folder. - * @type bool $recursive - * Optional. If true, parent folder doesn't have to be present and all missing - * ancestor folders will be created atomically. - * @type string $request_id - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the bucket in which the folder will reside. The bucket - * must be a hierarchical namespace enabled bucket. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Name of the bucket in which the folder will reside. The bucket - * must be a hierarchical namespace enabled bucket. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Properties of the new folder being created. - * The bucket and name of the folder are specified in the parent and folder_id - * fields, respectively. Populating those fields in `folder` will result in an - * error. - * - * Generated from protobuf field .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Storage\Control\V2\Folder|null - */ - public function getFolder() - { - return $this->folder; - } - - public function hasFolder() - { - return isset($this->folder); - } - - public function clearFolder() - { - unset($this->folder); - } - - /** - * Required. Properties of the new folder being created. - * The bucket and name of the folder are specified in the parent and folder_id - * fields, respectively. Populating those fields in `folder` will result in an - * error. - * - * Generated from protobuf field .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Storage\Control\V2\Folder $var - * @return $this - */ - public function setFolder($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\Folder::class); - $this->folder = $var; - - return $this; - } - - /** - * Required. The full name of a folder, including all its parent folders. - * Folders use single '/' characters as a delimiter. - * The folder_id must end with a slash. - * For example, the folder_id of "books/biographies/" would create a new - * "biographies/" folder under the "books/" folder. - * - * Generated from protobuf field string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFolderId() - { - return $this->folder_id; - } - - /** - * Required. The full name of a folder, including all its parent folders. - * Folders use single '/' characters as a delimiter. - * The folder_id must end with a slash. - * For example, the folder_id of "books/biographies/" would create a new - * "biographies/" folder under the "books/" folder. - * - * Generated from protobuf field string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFolderId($var) - { - GPBUtil::checkString($var, True); - $this->folder_id = $var; - - return $this; - } - - /** - * Optional. If true, parent folder doesn't have to be present and all missing - * ancestor folders will be created atomically. - * - * Generated from protobuf field bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getRecursive() - { - return $this->recursive; - } - - /** - * Optional. If true, parent folder doesn't have to be present and all missing - * ancestor folders will be created atomically. - * - * Generated from protobuf field bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setRecursive($var) - { - GPBUtil::checkBool($var); - $this->recursive = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateManagedFolderRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateManagedFolderRequest.php deleted file mode 100644 index 7ea633ae338a..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/CreateManagedFolderRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.storage.control.v2.CreateManagedFolderRequest - */ -class CreateManagedFolderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the bucket this managed folder belongs to. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Properties of the managed folder being created. - * The bucket and managed folder names are specified in the `parent` and - * `managed_folder_id` fields. Populating these fields in `managed_folder` - * will result in an error. - * - * Generated from protobuf field .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $managed_folder = null; - /** - * Required. The name of the managed folder. It uses a single `/` as delimiter - * and leading and trailing `/` are allowed. - * - * Generated from protobuf field string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $managed_folder_id = ''; - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $parent Required. Name of the bucket this managed folder belongs to. Please see - * {@see StorageControlClient::bucketName()} for help formatting this field. - * @param \Google\Cloud\Storage\Control\V2\ManagedFolder $managedFolder Required. Properties of the managed folder being created. - * The bucket and managed folder names are specified in the `parent` and - * `managed_folder_id` fields. Populating these fields in `managed_folder` - * will result in an error. - * @param string $managedFolderId Required. The name of the managed folder. It uses a single `/` as delimiter - * and leading and trailing `/` are allowed. - * - * @return \Google\Cloud\Storage\Control\V2\CreateManagedFolderRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Storage\Control\V2\ManagedFolder $managedFolder, string $managedFolderId): self - { - return (new self()) - ->setParent($parent) - ->setManagedFolder($managedFolder) - ->setManagedFolderId($managedFolderId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Name of the bucket this managed folder belongs to. - * @type \Google\Cloud\Storage\Control\V2\ManagedFolder $managed_folder - * Required. Properties of the managed folder being created. - * The bucket and managed folder names are specified in the `parent` and - * `managed_folder_id` fields. Populating these fields in `managed_folder` - * will result in an error. - * @type string $managed_folder_id - * Required. The name of the managed folder. It uses a single `/` as delimiter - * and leading and trailing `/` are allowed. - * @type string $request_id - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the bucket this managed folder belongs to. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Name of the bucket this managed folder belongs to. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Properties of the managed folder being created. - * The bucket and managed folder names are specified in the `parent` and - * `managed_folder_id` fields. Populating these fields in `managed_folder` - * will result in an error. - * - * Generated from protobuf field .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Storage\Control\V2\ManagedFolder|null - */ - public function getManagedFolder() - { - return $this->managed_folder; - } - - public function hasManagedFolder() - { - return isset($this->managed_folder); - } - - public function clearManagedFolder() - { - unset($this->managed_folder); - } - - /** - * Required. Properties of the managed folder being created. - * The bucket and managed folder names are specified in the `parent` and - * `managed_folder_id` fields. Populating these fields in `managed_folder` - * will result in an error. - * - * Generated from protobuf field .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Storage\Control\V2\ManagedFolder $var - * @return $this - */ - public function setManagedFolder($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\ManagedFolder::class); - $this->managed_folder = $var; - - return $this; - } - - /** - * Required. The name of the managed folder. It uses a single `/` as delimiter - * and leading and trailing `/` are allowed. - * - * Generated from protobuf field string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getManagedFolderId() - { - return $this->managed_folder_id; - } - - /** - * Required. The name of the managed folder. It uses a single `/` as delimiter - * and leading and trailing `/` are allowed. - * - * Generated from protobuf field string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setManagedFolderId($var) - { - GPBUtil::checkString($var, True); - $this->managed_folder_id = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRecursiveMetadata.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRecursiveMetadata.php deleted file mode 100644 index c92704c379bc..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRecursiveMetadata.php +++ /dev/null @@ -1,112 +0,0 @@ -google.storage.control.v2.DeleteFolderRecursiveMetadata - */ -class DeleteFolderRecursiveMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Generic metadata for the long running operation. - * - * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - */ - protected $common_metadata = null; - /** - * The path of the folder recursively deleted. - * - * Generated from protobuf field string folder_id = 2; - */ - protected $folder_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $common_metadata - * Generic metadata for the long running operation. - * @type string $folder_id - * The path of the folder recursively deleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Generic metadata for the long running operation. - * - * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * @return \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata|null - */ - public function getCommonMetadata() - { - return $this->common_metadata; - } - - public function hasCommonMetadata() - { - return isset($this->common_metadata); - } - - public function clearCommonMetadata() - { - unset($this->common_metadata); - } - - /** - * Generic metadata for the long running operation. - * - * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * @param \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $var - * @return $this - */ - public function setCommonMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata::class); - $this->common_metadata = $var; - - return $this; - } - - /** - * The path of the folder recursively deleted. - * - * Generated from protobuf field string folder_id = 2; - * @return string - */ - public function getFolderId() - { - return $this->folder_id; - } - - /** - * The path of the folder recursively deleted. - * - * Generated from protobuf field string folder_id = 2; - * @param string $var - * @return $this - */ - public function setFolderId($var) - { - GPBUtil::checkString($var, True); - $this->folder_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRecursiveRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRecursiveRequest.php deleted file mode 100644 index e39524b0c001..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRecursiveRequest.php +++ /dev/null @@ -1,225 +0,0 @@ -google.storage.control.v2.DeleteFolderRecursiveRequest - */ -class DeleteFolderRecursiveRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the folder being deleted, however all of its contents - * will be deleted too. Format: - * `projects/{project}/buckets/{bucket}/folders/{folder}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. Makes the operation only succeed conditional on whether the root - * folder's current metageneration matches the given value. - * - * Generated from protobuf field optional int64 if_metageneration_match = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $if_metageneration_match = null; - /** - * Optional. Makes the operation only succeed conditional on whether the root - * folder's current metageneration does not match the given value. - * - * Generated from protobuf field optional int64 if_metageneration_not_match = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $if_metageneration_not_match = null; - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $name Required. Name of the folder being deleted, however all of its contents - * will be deleted too. Format: - * `projects/{project}/buckets/{bucket}/folders/{folder}` - * Please see {@see StorageControlClient::folderName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\DeleteFolderRecursiveRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the folder being deleted, however all of its contents - * will be deleted too. Format: - * `projects/{project}/buckets/{bucket}/folders/{folder}` - * @type int|string $if_metageneration_match - * Optional. Makes the operation only succeed conditional on whether the root - * folder's current metageneration matches the given value. - * @type int|string $if_metageneration_not_match - * Optional. Makes the operation only succeed conditional on whether the root - * folder's current metageneration does not match the given value. - * @type string $request_id - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the folder being deleted, however all of its contents - * will be deleted too. Format: - * `projects/{project}/buckets/{bucket}/folders/{folder}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the folder being deleted, however all of its contents - * will be deleted too. Format: - * `projects/{project}/buckets/{bucket}/folders/{folder}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. Makes the operation only succeed conditional on whether the root - * folder's current metageneration matches the given value. - * - * Generated from protobuf field optional int64 if_metageneration_match = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getIfMetagenerationMatch() - { - return isset($this->if_metageneration_match) ? $this->if_metageneration_match : 0; - } - - public function hasIfMetagenerationMatch() - { - return isset($this->if_metageneration_match); - } - - public function clearIfMetagenerationMatch() - { - unset($this->if_metageneration_match); - } - - /** - * Optional. Makes the operation only succeed conditional on whether the root - * folder's current metageneration matches the given value. - * - * Generated from protobuf field optional int64 if_metageneration_match = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setIfMetagenerationMatch($var) - { - GPBUtil::checkInt64($var); - $this->if_metageneration_match = $var; - - return $this; - } - - /** - * Optional. Makes the operation only succeed conditional on whether the root - * folder's current metageneration does not match the given value. - * - * Generated from protobuf field optional int64 if_metageneration_not_match = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getIfMetagenerationNotMatch() - { - return isset($this->if_metageneration_not_match) ? $this->if_metageneration_not_match : 0; - } - - public function hasIfMetagenerationNotMatch() - { - return isset($this->if_metageneration_not_match); - } - - public function clearIfMetagenerationNotMatch() - { - unset($this->if_metageneration_not_match); - } - - /** - * Optional. Makes the operation only succeed conditional on whether the root - * folder's current metageneration does not match the given value. - * - * Generated from protobuf field optional int64 if_metageneration_not_match = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setIfMetagenerationNotMatch($var) - { - GPBUtil::checkInt64($var); - $this->if_metageneration_not_match = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRequest.php deleted file mode 100644 index 95e38618037c..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteFolderRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.storage.control.v2.DeleteFolderRequest - */ -class DeleteFolderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the folder. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * - * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Makes the operation only succeed conditional on whether the folder's - * current metageneration matches the given value. - * - * Generated from protobuf field optional int64 if_metageneration_match = 3; - */ - protected $if_metageneration_match = null; - /** - * Makes the operation only succeed conditional on whether the folder's - * current metageneration does not match the given value. - * - * Generated from protobuf field optional int64 if_metageneration_not_match = 4; - */ - protected $if_metageneration_not_match = null; - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $name Required. Name of the folder. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * Please see {@see StorageControlClient::folderName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\DeleteFolderRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the folder. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * @type int|string $if_metageneration_match - * Makes the operation only succeed conditional on whether the folder's - * current metageneration matches the given value. - * @type int|string $if_metageneration_not_match - * Makes the operation only succeed conditional on whether the folder's - * current metageneration does not match the given value. - * @type string $request_id - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the folder. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * - * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the folder. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * - * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Makes the operation only succeed conditional on whether the folder's - * current metageneration matches the given value. - * - * Generated from protobuf field optional int64 if_metageneration_match = 3; - * @return int|string - */ - public function getIfMetagenerationMatch() - { - return isset($this->if_metageneration_match) ? $this->if_metageneration_match : 0; - } - - public function hasIfMetagenerationMatch() - { - return isset($this->if_metageneration_match); - } - - public function clearIfMetagenerationMatch() - { - unset($this->if_metageneration_match); - } - - /** - * Makes the operation only succeed conditional on whether the folder's - * current metageneration matches the given value. - * - * Generated from protobuf field optional int64 if_metageneration_match = 3; - * @param int|string $var - * @return $this - */ - public function setIfMetagenerationMatch($var) - { - GPBUtil::checkInt64($var); - $this->if_metageneration_match = $var; - - return $this; - } - - /** - * Makes the operation only succeed conditional on whether the folder's - * current metageneration does not match the given value. - * - * Generated from protobuf field optional int64 if_metageneration_not_match = 4; - * @return int|string - */ - public function getIfMetagenerationNotMatch() - { - return isset($this->if_metageneration_not_match) ? $this->if_metageneration_not_match : 0; - } - - public function hasIfMetagenerationNotMatch() - { - return isset($this->if_metageneration_not_match); - } - - public function clearIfMetagenerationNotMatch() - { - unset($this->if_metageneration_not_match); - } - - /** - * Makes the operation only succeed conditional on whether the folder's - * current metageneration does not match the given value. - * - * Generated from protobuf field optional int64 if_metageneration_not_match = 4; - * @param int|string $var - * @return $this - */ - public function setIfMetagenerationNotMatch($var) - { - GPBUtil::checkInt64($var); - $this->if_metageneration_not_match = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteManagedFolderRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteManagedFolderRequest.php deleted file mode 100644 index a0c677dbdfe2..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DeleteManagedFolderRequest.php +++ /dev/null @@ -1,271 +0,0 @@ -google.storage.control.v2.DeleteManagedFolderRequest - */ -class DeleteManagedFolderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the managed folder. - * Format: - * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` - * - * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The operation succeeds conditional on the managed folder's current - * metageneration matching the value here specified. - * - * Generated from protobuf field optional int64 if_metageneration_match = 3; - */ - protected $if_metageneration_match = null; - /** - * The operation succeeds conditional on the managed folder's current - * metageneration NOT matching the value here specified. - * - * Generated from protobuf field optional int64 if_metageneration_not_match = 4; - */ - protected $if_metageneration_not_match = null; - /** - * Allows deletion of a managed folder even if it is not empty. - * A managed folder is empty if it manages no child managed folders or - * objects. Caller must have permission for - * storage.managedFolders.setIamPolicy. - * - * Generated from protobuf field bool allow_non_empty = 5; - */ - protected $allow_non_empty = false; - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $name Required. Name of the managed folder. - * Format: - * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` - * Please see {@see StorageControlClient::managedFolderName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\DeleteManagedFolderRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the managed folder. - * Format: - * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` - * @type int|string $if_metageneration_match - * The operation succeeds conditional on the managed folder's current - * metageneration matching the value here specified. - * @type int|string $if_metageneration_not_match - * The operation succeeds conditional on the managed folder's current - * metageneration NOT matching the value here specified. - * @type bool $allow_non_empty - * Allows deletion of a managed folder even if it is not empty. - * A managed folder is empty if it manages no child managed folders or - * objects. Caller must have permission for - * storage.managedFolders.setIamPolicy. - * @type string $request_id - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the managed folder. - * Format: - * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` - * - * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the managed folder. - * Format: - * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` - * - * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The operation succeeds conditional on the managed folder's current - * metageneration matching the value here specified. - * - * Generated from protobuf field optional int64 if_metageneration_match = 3; - * @return int|string - */ - public function getIfMetagenerationMatch() - { - return isset($this->if_metageneration_match) ? $this->if_metageneration_match : 0; - } - - public function hasIfMetagenerationMatch() - { - return isset($this->if_metageneration_match); - } - - public function clearIfMetagenerationMatch() - { - unset($this->if_metageneration_match); - } - - /** - * The operation succeeds conditional on the managed folder's current - * metageneration matching the value here specified. - * - * Generated from protobuf field optional int64 if_metageneration_match = 3; - * @param int|string $var - * @return $this - */ - public function setIfMetagenerationMatch($var) - { - GPBUtil::checkInt64($var); - $this->if_metageneration_match = $var; - - return $this; - } - - /** - * The operation succeeds conditional on the managed folder's current - * metageneration NOT matching the value here specified. - * - * Generated from protobuf field optional int64 if_metageneration_not_match = 4; - * @return int|string - */ - public function getIfMetagenerationNotMatch() - { - return isset($this->if_metageneration_not_match) ? $this->if_metageneration_not_match : 0; - } - - public function hasIfMetagenerationNotMatch() - { - return isset($this->if_metageneration_not_match); - } - - public function clearIfMetagenerationNotMatch() - { - unset($this->if_metageneration_not_match); - } - - /** - * The operation succeeds conditional on the managed folder's current - * metageneration NOT matching the value here specified. - * - * Generated from protobuf field optional int64 if_metageneration_not_match = 4; - * @param int|string $var - * @return $this - */ - public function setIfMetagenerationNotMatch($var) - { - GPBUtil::checkInt64($var); - $this->if_metageneration_not_match = $var; - - return $this; - } - - /** - * Allows deletion of a managed folder even if it is not empty. - * A managed folder is empty if it manages no child managed folders or - * objects. Caller must have permission for - * storage.managedFolders.setIamPolicy. - * - * Generated from protobuf field bool allow_non_empty = 5; - * @return bool - */ - public function getAllowNonEmpty() - { - return $this->allow_non_empty; - } - - /** - * Allows deletion of a managed folder even if it is not empty. - * A managed folder is empty if it manages no child managed folders or - * objects. Caller must have permission for - * storage.managedFolders.setIamPolicy. - * - * Generated from protobuf field bool allow_non_empty = 5; - * @param bool $var - * @return $this - */ - public function setAllowNonEmpty($var) - { - GPBUtil::checkBool($var); - $this->allow_non_empty = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DisableAnywhereCacheRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DisableAnywhereCacheRequest.php deleted file mode 100644 index 9e5b29ebeb83..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/DisableAnywhereCacheRequest.php +++ /dev/null @@ -1,128 +0,0 @@ -google.storage.control.v2.DisableAnywhereCacheRequest - */ -class DisableAnywhereCacheRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $name Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * Please see {@see StorageControlClient::anywhereCacheName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\DisableAnywhereCacheRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * @type string $request_id - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingCategory.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingCategory.php deleted file mode 100644 index 352db1f0b22f..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingCategory.php +++ /dev/null @@ -1,61 +0,0 @@ -google.storage.control.v2.FindingCategory - */ -class FindingCategory -{ - /** - * Category is unspecified. - * - * Generated from protobuf enum FINDING_CATEGORY_UNSPECIFIED = 0; - */ - const FINDING_CATEGORY_UNSPECIFIED = 0; - /** - * Category is 'Data Management'. - * - * Generated from protobuf enum FINDING_CATEGORY_DATA_MANAGEMENT = 1; - */ - const FINDING_CATEGORY_DATA_MANAGEMENT = 1; - /** - * Category is 'Performance'. - * - * Generated from protobuf enum FINDING_CATEGORY_PERFORMANCE = 2; - */ - const FINDING_CATEGORY_PERFORMANCE = 2; - - private static $valueToName = [ - self::FINDING_CATEGORY_UNSPECIFIED => 'FINDING_CATEGORY_UNSPECIFIED', - self::FINDING_CATEGORY_DATA_MANAGEMENT => 'FINDING_CATEGORY_DATA_MANAGEMENT', - self::FINDING_CATEGORY_PERFORMANCE => 'FINDING_CATEGORY_PERFORMANCE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSeverity.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSeverity.php deleted file mode 100644 index f2f2d2d3d3fe..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSeverity.php +++ /dev/null @@ -1,54 +0,0 @@ -google.storage.control.v2.FindingSeverity - */ -class FindingSeverity -{ - /** - * Severity is unspecified. - * - * Generated from protobuf enum FINDING_SEVERITY_UNSPECIFIED = 0; - */ - const FINDING_SEVERITY_UNSPECIFIED = 0; - /** - * Severity is critical. - * - * Generated from protobuf enum FINDING_SEVERITY_CRITICAL = 1; - */ - const FINDING_SEVERITY_CRITICAL = 1; - - private static $valueToName = [ - self::FINDING_SEVERITY_UNSPECIFIED => 'FINDING_SEVERITY_UNSPECIFIED', - self::FINDING_SEVERITY_CRITICAL => 'FINDING_SEVERITY_CRITICAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary.php deleted file mode 100644 index 8409eb38a1a4..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary.php +++ /dev/null @@ -1,307 +0,0 @@ -google.storage.control.v2.FindingSummary - */ -class FindingSummary extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The type of the finding. - * - * Generated from protobuf field .google.storage.control.v2.FindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $type = 0; - /** - * Output only. The category of finding. - * - * Generated from protobuf field .google.storage.control.v2.FindingCategory category = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $category = 0; - /** - * Output only. The fully qualified Cloud resource name for which this - * summary was generated. - * eg: `//cloudresourcemanager.googleapis.com/projects/p1` - * - * Generated from protobuf field string target_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target_resource = ''; - /** - * Output only. The creation time of the earliest finding that this summary is - * based on. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time of the most recent update among all the findings that - * this summary is based on. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Severity of the finding. - * - * Generated from protobuf field .google.storage.control.v2.FindingSeverity severity = 7; - */ - protected $severity = 0; - /** - * Output only. List of `SummaryDetails`. - * - * Generated from protobuf field repeated .google.storage.control.v2.FindingSummary.SummaryDetails summary_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $summary_details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Output only. The type of the finding. - * @type int $category - * Output only. The category of finding. - * @type string $target_resource - * Output only. The fully qualified Cloud resource name for which this - * summary was generated. - * eg: `//cloudresourcemanager.googleapis.com/projects/p1` - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation time of the earliest finding that this summary is - * based on. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time of the most recent update among all the findings that - * this summary is based on. - * @type int $severity - * Severity of the finding. - * @type \Google\Cloud\Storage\Control\V2\FindingSummary\SummaryDetails[] $summary_details - * Output only. List of `SummaryDetails`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The type of the finding. - * - * Generated from protobuf field .google.storage.control.v2.FindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Output only. The type of the finding. - * - * Generated from protobuf field .google.storage.control.v2.FindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\FindingType::class); - $this->type = $var; - - return $this; - } - - /** - * Output only. The category of finding. - * - * Generated from protobuf field .google.storage.control.v2.FindingCategory category = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getCategory() - { - return $this->category; - } - - /** - * Output only. The category of finding. - * - * Generated from protobuf field .google.storage.control.v2.FindingCategory category = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\FindingCategory::class); - $this->category = $var; - - return $this; - } - - /** - * Output only. The fully qualified Cloud resource name for which this - * summary was generated. - * eg: `//cloudresourcemanager.googleapis.com/projects/p1` - * - * Generated from protobuf field string target_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTargetResource() - { - return $this->target_resource; - } - - /** - * Output only. The fully qualified Cloud resource name for which this - * summary was generated. - * eg: `//cloudresourcemanager.googleapis.com/projects/p1` - * - * Generated from protobuf field string target_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTargetResource($var) - { - GPBUtil::checkString($var, True); - $this->target_resource = $var; - - return $this; - } - - /** - * Output only. The creation time of the earliest finding that this summary is - * based on. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The creation time of the earliest finding that this summary is - * based on. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time of the most recent update among all the findings that - * this summary is based on. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time of the most recent update among all the findings that - * this summary is based on. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Severity of the finding. - * - * Generated from protobuf field .google.storage.control.v2.FindingSeverity severity = 7; - * @return int - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * Severity of the finding. - * - * Generated from protobuf field .google.storage.control.v2.FindingSeverity severity = 7; - * @param int $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\FindingSeverity::class); - $this->severity = $var; - - return $this; - } - - /** - * Output only. List of `SummaryDetails`. - * - * Generated from protobuf field repeated .google.storage.control.v2.FindingSummary.SummaryDetails summary_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Storage\Control\V2\FindingSummary\SummaryDetails> - */ - public function getSummaryDetails() - { - return $this->summary_details; - } - - /** - * Output only. List of `SummaryDetails`. - * - * Generated from protobuf field repeated .google.storage.control.v2.FindingSummary.SummaryDetails summary_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\FindingSummary\SummaryDetails[] $var - * @return $this - */ - public function setSummaryDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\FindingSummary\SummaryDetails::class); - $this->summary_details = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary/SummaryDetails.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary/SummaryDetails.php deleted file mode 100644 index eb7124be783f..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary/SummaryDetails.php +++ /dev/null @@ -1,176 +0,0 @@ -google.storage.control.v2.FindingSummary.SummaryDetails - */ -class SummaryDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The type of Cloud resource this summary detail applies to. - * - * Generated from protobuf field .google.storage.control.v2.FindingSummary.SummaryDetails.ResourceType resource_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $resource_type = 0; - /** - * Output only. A short description about the FindingSummary - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $description = ''; - protected $magnitude; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $count - * The count of impacted resources. - * @type float $percentage - * The percentage of impacted resources. - * @type int $resource_type - * Output only. The type of Cloud resource this summary detail applies to. - * @type string $description - * Output only. A short description about the FindingSummary - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * The count of impacted resources. - * - * Generated from protobuf field int64 count = 1; - * @return int|string - */ - public function getCount() - { - return $this->readOneof(1); - } - - public function hasCount() - { - return $this->hasOneof(1); - } - - /** - * The count of impacted resources. - * - * Generated from protobuf field int64 count = 1; - * @param int|string $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The percentage of impacted resources. - * - * Generated from protobuf field float percentage = 2; - * @return float - */ - public function getPercentage() - { - return $this->readOneof(2); - } - - public function hasPercentage() - { - return $this->hasOneof(2); - } - - /** - * The percentage of impacted resources. - * - * Generated from protobuf field float percentage = 2; - * @param float $var - * @return $this - */ - public function setPercentage($var) - { - GPBUtil::checkFloat($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Output only. The type of Cloud resource this summary detail applies to. - * - * Generated from protobuf field .google.storage.control.v2.FindingSummary.SummaryDetails.ResourceType resource_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Output only. The type of Cloud resource this summary detail applies to. - * - * Generated from protobuf field .google.storage.control.v2.FindingSummary.SummaryDetails.ResourceType resource_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\FindingSummary\SummaryDetails\ResourceType::class); - $this->resource_type = $var; - - return $this; - } - - /** - * Output only. A short description about the FindingSummary - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Output only. A short description about the FindingSummary - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * @return string - */ - public function getMagnitude() - { - return $this->whichOneof("magnitude"); - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary/SummaryDetails/ResourceType.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary/SummaryDetails/ResourceType.php deleted file mode 100644 index 24e36f96bf19..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingSummary/SummaryDetails/ResourceType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.storage.control.v2.FindingSummary.SummaryDetails.ResourceType - */ -class ResourceType -{ - /** - * Resource type is unspecified. - * - * Generated from protobuf enum RESOURCE_TYPE_UNSPECIFIED = 0; - */ - const RESOURCE_TYPE_UNSPECIFIED = 0; - /** - * Resource type is project. - * - * Generated from protobuf enum PROJECT = 1; - */ - const PROJECT = 1; - /** - * Resource type is bucket. - * - * Generated from protobuf enum BUCKET = 2; - */ - const BUCKET = 2; - - private static $valueToName = [ - self::RESOURCE_TYPE_UNSPECIFIED => 'RESOURCE_TYPE_UNSPECIFIED', - self::PROJECT => 'PROJECT', - self::BUCKET => 'BUCKET', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingType.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingType.php deleted file mode 100644 index d4a885894359..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/FindingType.php +++ /dev/null @@ -1,77 +0,0 @@ -google.storage.control.v2.FindingType - */ -class FindingType -{ - /** - * Finding type is unspecified. - * - * Generated from protobuf enum FINDING_TYPE_UNSPECIFIED = 0; - */ - const FINDING_TYPE_UNSPECIFIED = 0; - /** - * Finding is about a spike in Class A/B operations on Coldline or Archive - * Cloud Storage objects. - * - * Generated from protobuf enum FINDING_TYPE_COLDLINE_AND_ARCHIVAL_STORAGE_OPERATIONS_SPIKE = 1; - */ - const FINDING_TYPE_COLDLINE_AND_ARCHIVAL_STORAGE_OPERATIONS_SPIKE = 1; - /** - * Finding is about a spike in throttled requests (429 errors) within a - * project. - * - * Generated from protobuf enum FINDING_TYPE_THROTTLED_REQUEST_SPIKE = 2; - */ - const FINDING_TYPE_THROTTLED_REQUEST_SPIKE = 2; - /** - * Finding is about a spike in cross region egress in Cloud Storage. - * - * Generated from protobuf enum FINDING_TYPE_CROSS_REGION_EGRESS_SPIKE = 3; - */ - const FINDING_TYPE_CROSS_REGION_EGRESS_SPIKE = 3; - /** - * Finding is about growth in storage above the expected trend. - * - * Generated from protobuf enum FINDING_TYPE_STORAGE_GROWTH_ABOVE_TREND = 4; - */ - const FINDING_TYPE_STORAGE_GROWTH_ABOVE_TREND = 4; - - private static $valueToName = [ - self::FINDING_TYPE_UNSPECIFIED => 'FINDING_TYPE_UNSPECIFIED', - self::FINDING_TYPE_COLDLINE_AND_ARCHIVAL_STORAGE_OPERATIONS_SPIKE => 'FINDING_TYPE_COLDLINE_AND_ARCHIVAL_STORAGE_OPERATIONS_SPIKE', - self::FINDING_TYPE_THROTTLED_REQUEST_SPIKE => 'FINDING_TYPE_THROTTLED_REQUEST_SPIKE', - self::FINDING_TYPE_CROSS_REGION_EGRESS_SPIKE => 'FINDING_TYPE_CROSS_REGION_EGRESS_SPIKE', - self::FINDING_TYPE_STORAGE_GROWTH_ABOVE_TREND => 'FINDING_TYPE_STORAGE_GROWTH_ABOVE_TREND', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/Folder.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/Folder.php deleted file mode 100644 index 1aa6bb03a2f8..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/Folder.php +++ /dev/null @@ -1,258 +0,0 @@ -google.storage.control.v2.Folder - */ -class Folder extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of this folder. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The version of the metadata for this folder. Used for - * preconditions and for detecting changes in metadata. - * - * Generated from protobuf field int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $metageneration = 0; - /** - * Output only. The creation time of the folder. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The modification time of the folder. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. Only present if the folder is part of an ongoing RenameFolder - * operation. Contains information which can be used to query the operation - * status. The presence of this field also indicates all write operations are - * blocked for this folder, including folder, managed folder, and object - * operations. - * - * Generated from protobuf field .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $pending_rename_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The name of this folder. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * @type int|string $metageneration - * Output only. The version of the metadata for this folder. Used for - * preconditions and for detecting changes in metadata. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation time of the folder. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The modification time of the folder. - * @type \Google\Cloud\Storage\Control\V2\PendingRenameInfo $pending_rename_info - * Output only. Only present if the folder is part of an ongoing RenameFolder - * operation. Contains information which can be used to query the operation - * status. The presence of this field also indicates all write operations are - * blocked for this folder, including folder, managed folder, and object - * operations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name of this folder. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of this folder. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The version of the metadata for this folder. Used for - * preconditions and for detecting changes in metadata. - * - * Generated from protobuf field int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getMetageneration() - { - return $this->metageneration; - } - - /** - * Output only. The version of the metadata for this folder. Used for - * preconditions and for detecting changes in metadata. - * - * Generated from protobuf field int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setMetageneration($var) - { - GPBUtil::checkInt64($var); - $this->metageneration = $var; - - return $this; - } - - /** - * Output only. The creation time of the folder. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The creation time of the folder. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The modification time of the folder. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The modification time of the folder. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. Only present if the folder is part of an ongoing RenameFolder - * operation. Contains information which can be used to query the operation - * status. The presence of this field also indicates all write operations are - * blocked for this folder, including folder, managed folder, and object - * operations. - * - * Generated from protobuf field .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Storage\Control\V2\PendingRenameInfo|null - */ - public function getPendingRenameInfo() - { - return $this->pending_rename_info; - } - - public function hasPendingRenameInfo() - { - return isset($this->pending_rename_info); - } - - public function clearPendingRenameInfo() - { - unset($this->pending_rename_info); - } - - /** - * Output only. Only present if the folder is part of an ongoing RenameFolder - * operation. Contains information which can be used to query the operation - * status. The presence of this field also indicates all write operations are - * blocked for this folder, including folder, managed folder, and object - * operations. - * - * Generated from protobuf field .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\PendingRenameInfo $var - * @return $this - */ - public function setPendingRenameInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\PendingRenameInfo::class); - $this->pending_rename_info = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetAnywhereCacheRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetAnywhereCacheRequest.php deleted file mode 100644 index e09e6f6d7c7b..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetAnywhereCacheRequest.php +++ /dev/null @@ -1,124 +0,0 @@ -google.storage.control.v2.GetAnywhereCacheRequest - */ -class GetAnywhereCacheRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $name Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * Please see {@see StorageControlClient::anywhereCacheName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\GetAnywhereCacheRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * @type string $request_id - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetFolderIntelligenceConfigRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetFolderIntelligenceConfigRequest.php deleted file mode 100644 index 9de5499e28f4..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetFolderIntelligenceConfigRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.storage.control.v2.GetFolderIntelligenceConfigRequest - */ -class GetFolderIntelligenceConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the `IntelligenceConfig` resource associated with - * your folder. - * Format: `folders/{id}/locations/global/intelligenceConfig` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the `IntelligenceConfig` resource associated with - * your folder. - * - * Format: `folders/{id}/locations/global/intelligenceConfig` - * Please see {@see StorageControlClient::intelligenceConfigName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\GetFolderIntelligenceConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the `IntelligenceConfig` resource associated with - * your folder. - * Format: `folders/{id}/locations/global/intelligenceConfig` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the `IntelligenceConfig` resource associated with - * your folder. - * Format: `folders/{id}/locations/global/intelligenceConfig` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the `IntelligenceConfig` resource associated with - * your folder. - * Format: `folders/{id}/locations/global/intelligenceConfig` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetFolderRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetFolderRequest.php deleted file mode 100644 index 690e4ddc693a..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetFolderRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.storage.control.v2.GetFolderRequest - */ -class GetFolderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the folder. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * - * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Makes the operation only succeed conditional on whether the folder's - * current metageneration matches the given value. - * - * Generated from protobuf field optional int64 if_metageneration_match = 3; - */ - protected $if_metageneration_match = null; - /** - * Makes the operation only succeed conditional on whether the folder's - * current metageneration does not match the given value. - * - * Generated from protobuf field optional int64 if_metageneration_not_match = 4; - */ - protected $if_metageneration_not_match = null; - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $name Required. Name of the folder. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * Please see {@see StorageControlClient::folderName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\GetFolderRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the folder. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * @type int|string $if_metageneration_match - * Makes the operation only succeed conditional on whether the folder's - * current metageneration matches the given value. - * @type int|string $if_metageneration_not_match - * Makes the operation only succeed conditional on whether the folder's - * current metageneration does not match the given value. - * @type string $request_id - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the folder. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * - * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the folder. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * - * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Makes the operation only succeed conditional on whether the folder's - * current metageneration matches the given value. - * - * Generated from protobuf field optional int64 if_metageneration_match = 3; - * @return int|string - */ - public function getIfMetagenerationMatch() - { - return isset($this->if_metageneration_match) ? $this->if_metageneration_match : 0; - } - - public function hasIfMetagenerationMatch() - { - return isset($this->if_metageneration_match); - } - - public function clearIfMetagenerationMatch() - { - unset($this->if_metageneration_match); - } - - /** - * Makes the operation only succeed conditional on whether the folder's - * current metageneration matches the given value. - * - * Generated from protobuf field optional int64 if_metageneration_match = 3; - * @param int|string $var - * @return $this - */ - public function setIfMetagenerationMatch($var) - { - GPBUtil::checkInt64($var); - $this->if_metageneration_match = $var; - - return $this; - } - - /** - * Makes the operation only succeed conditional on whether the folder's - * current metageneration does not match the given value. - * - * Generated from protobuf field optional int64 if_metageneration_not_match = 4; - * @return int|string - */ - public function getIfMetagenerationNotMatch() - { - return isset($this->if_metageneration_not_match) ? $this->if_metageneration_not_match : 0; - } - - public function hasIfMetagenerationNotMatch() - { - return isset($this->if_metageneration_not_match); - } - - public function clearIfMetagenerationNotMatch() - { - unset($this->if_metageneration_not_match); - } - - /** - * Makes the operation only succeed conditional on whether the folder's - * current metageneration does not match the given value. - * - * Generated from protobuf field optional int64 if_metageneration_not_match = 4; - * @param int|string $var - * @return $this - */ - public function setIfMetagenerationNotMatch($var) - { - GPBUtil::checkInt64($var); - $this->if_metageneration_not_match = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetIntelligenceFindingRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetIntelligenceFindingRequest.php deleted file mode 100644 index f787ace6a22e..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetIntelligenceFindingRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.storage.control.v2.GetIntelligenceFindingRequest - */ -class GetIntelligenceFindingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the `IntelligenceFinding` resource. - * Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the `IntelligenceFinding` resource. - * - * Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` - * Please see {@see StorageControlClient::intelligenceFindingName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\GetIntelligenceFindingRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the `IntelligenceFinding` resource. - * Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the `IntelligenceFinding` resource. - * Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the `IntelligenceFinding` resource. - * Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetIntelligenceFindingRevisionRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetIntelligenceFindingRevisionRequest.php deleted file mode 100644 index 4224dc9017be..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetIntelligenceFindingRevisionRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.storage.control.v2.GetIntelligenceFindingRevisionRequest - */ -class GetIntelligenceFindingRevisionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the `IntelligenceFindingRevision` resource. - * ## Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the `IntelligenceFindingRevision` resource. - * ## Format: - * - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` - * Please see {@see StorageControlClient::intelligenceFindingRevisionName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\GetIntelligenceFindingRevisionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the `IntelligenceFindingRevision` resource. - * ## Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the `IntelligenceFindingRevision` resource. - * ## Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the `IntelligenceFindingRevision` resource. - * ## Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetManagedFolderRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetManagedFolderRequest.php deleted file mode 100644 index 3410e9e7a898..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetManagedFolderRequest.php +++ /dev/null @@ -1,225 +0,0 @@ -google.storage.control.v2.GetManagedFolderRequest - */ -class GetManagedFolderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the managed folder. - * Format: - * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` - * - * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The operation succeeds conditional on the managed folder's current - * metageneration matching the value here specified. - * - * Generated from protobuf field optional int64 if_metageneration_match = 3; - */ - protected $if_metageneration_match = null; - /** - * The operation succeeds conditional on the managed folder's current - * metageneration NOT matching the value here specified. - * - * Generated from protobuf field optional int64 if_metageneration_not_match = 4; - */ - protected $if_metageneration_not_match = null; - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $name Required. Name of the managed folder. - * Format: - * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` - * Please see {@see StorageControlClient::managedFolderName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\GetManagedFolderRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the managed folder. - * Format: - * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` - * @type int|string $if_metageneration_match - * The operation succeeds conditional on the managed folder's current - * metageneration matching the value here specified. - * @type int|string $if_metageneration_not_match - * The operation succeeds conditional on the managed folder's current - * metageneration NOT matching the value here specified. - * @type string $request_id - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the managed folder. - * Format: - * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` - * - * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the managed folder. - * Format: - * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` - * - * Generated from protobuf field string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The operation succeeds conditional on the managed folder's current - * metageneration matching the value here specified. - * - * Generated from protobuf field optional int64 if_metageneration_match = 3; - * @return int|string - */ - public function getIfMetagenerationMatch() - { - return isset($this->if_metageneration_match) ? $this->if_metageneration_match : 0; - } - - public function hasIfMetagenerationMatch() - { - return isset($this->if_metageneration_match); - } - - public function clearIfMetagenerationMatch() - { - unset($this->if_metageneration_match); - } - - /** - * The operation succeeds conditional on the managed folder's current - * metageneration matching the value here specified. - * - * Generated from protobuf field optional int64 if_metageneration_match = 3; - * @param int|string $var - * @return $this - */ - public function setIfMetagenerationMatch($var) - { - GPBUtil::checkInt64($var); - $this->if_metageneration_match = $var; - - return $this; - } - - /** - * The operation succeeds conditional on the managed folder's current - * metageneration NOT matching the value here specified. - * - * Generated from protobuf field optional int64 if_metageneration_not_match = 4; - * @return int|string - */ - public function getIfMetagenerationNotMatch() - { - return isset($this->if_metageneration_not_match) ? $this->if_metageneration_not_match : 0; - } - - public function hasIfMetagenerationNotMatch() - { - return isset($this->if_metageneration_not_match); - } - - public function clearIfMetagenerationNotMatch() - { - unset($this->if_metageneration_not_match); - } - - /** - * The operation succeeds conditional on the managed folder's current - * metageneration NOT matching the value here specified. - * - * Generated from protobuf field optional int64 if_metageneration_not_match = 4; - * @param int|string $var - * @return $this - */ - public function setIfMetagenerationNotMatch($var) - { - GPBUtil::checkInt64($var); - $this->if_metageneration_not_match = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetOrganizationIntelligenceConfigRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetOrganizationIntelligenceConfigRequest.php deleted file mode 100644 index 256a3a19da96..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetOrganizationIntelligenceConfigRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.storage.control.v2.GetOrganizationIntelligenceConfigRequest - */ -class GetOrganizationIntelligenceConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the `IntelligenceConfig` resource associated with - * your organization. - * Format: `organizations/{org_id}/locations/global/intelligenceConfig` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the `IntelligenceConfig` resource associated with - * your organization. - * - * Format: `organizations/{org_id}/locations/global/intelligenceConfig` - * Please see {@see StorageControlClient::intelligenceConfigName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\GetOrganizationIntelligenceConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the `IntelligenceConfig` resource associated with - * your organization. - * Format: `organizations/{org_id}/locations/global/intelligenceConfig` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the `IntelligenceConfig` resource associated with - * your organization. - * Format: `organizations/{org_id}/locations/global/intelligenceConfig` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the `IntelligenceConfig` resource associated with - * your organization. - * Format: `organizations/{org_id}/locations/global/intelligenceConfig` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetProjectIntelligenceConfigRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetProjectIntelligenceConfigRequest.php deleted file mode 100644 index 7134fad72722..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetProjectIntelligenceConfigRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.storage.control.v2.GetProjectIntelligenceConfigRequest - */ -class GetProjectIntelligenceConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the `IntelligenceConfig` resource associated with - * your project. - * Format: `projects/{id}/locations/global/intelligenceConfig` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the `IntelligenceConfig` resource associated with - * your project. - * - * Format: `projects/{id}/locations/global/intelligenceConfig` - * Please see {@see StorageControlClient::intelligenceConfigName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\GetProjectIntelligenceConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the `IntelligenceConfig` resource associated with - * your project. - * Format: `projects/{id}/locations/global/intelligenceConfig` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the `IntelligenceConfig` resource associated with - * your project. - * Format: `projects/{id}/locations/global/intelligenceConfig` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the `IntelligenceConfig` resource associated with - * your project. - * Format: `projects/{id}/locations/global/intelligenceConfig` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetStorageLayoutRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetStorageLayoutRequest.php deleted file mode 100644 index ffd8ff92e0c5..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/GetStorageLayoutRequest.php +++ /dev/null @@ -1,162 +0,0 @@ -google.storage.control.v2.GetStorageLayoutRequest - */ -class GetStorageLayoutRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the StorageLayout resource. - * Format: `projects/{project}/buckets/{bucket}/storageLayout` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * An optional prefix used for permission check. It is useful when the caller - * only has limited permissions under a specific prefix. - * - * Generated from protobuf field string prefix = 2; - */ - protected $prefix = ''; - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $name Required. The name of the StorageLayout resource. - * Format: `projects/{project}/buckets/{bucket}/storageLayout` - * Please see {@see StorageControlClient::storageLayoutName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\GetStorageLayoutRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the StorageLayout resource. - * Format: `projects/{project}/buckets/{bucket}/storageLayout` - * @type string $prefix - * An optional prefix used for permission check. It is useful when the caller - * only has limited permissions under a specific prefix. - * @type string $request_id - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the StorageLayout resource. - * Format: `projects/{project}/buckets/{bucket}/storageLayout` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the StorageLayout resource. - * Format: `projects/{project}/buckets/{bucket}/storageLayout` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * An optional prefix used for permission check. It is useful when the caller - * only has limited permissions under a specific prefix. - * - * Generated from protobuf field string prefix = 2; - * @return string - */ - public function getPrefix() - { - return $this->prefix; - } - - /** - * An optional prefix used for permission check. It is useful when the caller - * only has limited permissions under a specific prefix. - * - * Generated from protobuf field string prefix = 2; - * @param string $var - * @return $this - */ - public function setPrefix($var) - { - GPBUtil::checkString($var, True); - $this->prefix = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig.php deleted file mode 100644 index e5ce108d3049..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig.php +++ /dev/null @@ -1,314 +0,0 @@ -google.storage.control.v2.IntelligenceConfig - */ -class IntelligenceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of the `IntelligenceConfig` resource associated with - * your organization, folder, or project. - * The name format varies based on the GCP resource hierarchy as follows: - * * For project: - * `projects/{project_number}/locations/global/intelligenceConfig` - * * For organization: - * `organizations/{org_id}/locations/global/intelligenceConfig` - * * For folder: `folders/{folder_id}/locations/global/intelligenceConfig` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. The edition configuration of the `IntelligenceConfig` resource. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.EditionConfig edition_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $edition_config = 0; - /** - * Output only. The time at which the `IntelligenceConfig` resource is last - * updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Filter over location and bucket. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = null; - /** - * Output only. The `IntelligenceConfig` resource that is applicable for the - * resource. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig effective_intelligence_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $effective_intelligence_config = null; - /** - * The trial configuration of the `IntelligenceConfig` resource. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.TrialConfig trial_config = 7; - */ - protected $trial_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The name of the `IntelligenceConfig` resource associated with - * your organization, folder, or project. - * The name format varies based on the GCP resource hierarchy as follows: - * * For project: - * `projects/{project_number}/locations/global/intelligenceConfig` - * * For organization: - * `organizations/{org_id}/locations/global/intelligenceConfig` - * * For folder: `folders/{folder_id}/locations/global/intelligenceConfig` - * @type int $edition_config - * Optional. The edition configuration of the `IntelligenceConfig` resource. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the `IntelligenceConfig` resource is last - * updated. - * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter $filter - * Optional. Filter over location and bucket. - * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig\EffectiveIntelligenceConfig $effective_intelligence_config - * Output only. The `IntelligenceConfig` resource that is applicable for the - * resource. - * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig\TrialConfig $trial_config - * The trial configuration of the `IntelligenceConfig` resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name of the `IntelligenceConfig` resource associated with - * your organization, folder, or project. - * The name format varies based on the GCP resource hierarchy as follows: - * * For project: - * `projects/{project_number}/locations/global/intelligenceConfig` - * * For organization: - * `organizations/{org_id}/locations/global/intelligenceConfig` - * * For folder: `folders/{folder_id}/locations/global/intelligenceConfig` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the `IntelligenceConfig` resource associated with - * your organization, folder, or project. - * The name format varies based on the GCP resource hierarchy as follows: - * * For project: - * `projects/{project_number}/locations/global/intelligenceConfig` - * * For organization: - * `organizations/{org_id}/locations/global/intelligenceConfig` - * * For folder: `folders/{folder_id}/locations/global/intelligenceConfig` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The edition configuration of the `IntelligenceConfig` resource. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.EditionConfig edition_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getEditionConfig() - { - return $this->edition_config; - } - - /** - * Optional. The edition configuration of the `IntelligenceConfig` resource. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.EditionConfig edition_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setEditionConfig($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig\EditionConfig::class); - $this->edition_config = $var; - - return $this; - } - - /** - * Output only. The time at which the `IntelligenceConfig` resource is last - * updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time at which the `IntelligenceConfig` resource is last - * updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. Filter over location and bucket. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter|null - */ - public function getFilter() - { - return $this->filter; - } - - public function hasFilter() - { - return isset($this->filter); - } - - public function clearFilter() - { - unset($this->filter); - } - - /** - * Optional. Filter over location and bucket. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter::class); - $this->filter = $var; - - return $this; - } - - /** - * Output only. The `IntelligenceConfig` resource that is applicable for the - * resource. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig effective_intelligence_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig\EffectiveIntelligenceConfig|null - */ - public function getEffectiveIntelligenceConfig() - { - return $this->effective_intelligence_config; - } - - public function hasEffectiveIntelligenceConfig() - { - return isset($this->effective_intelligence_config); - } - - public function clearEffectiveIntelligenceConfig() - { - unset($this->effective_intelligence_config); - } - - /** - * Output only. The `IntelligenceConfig` resource that is applicable for the - * resource. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig effective_intelligence_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig\EffectiveIntelligenceConfig $var - * @return $this - */ - public function setEffectiveIntelligenceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig\EffectiveIntelligenceConfig::class); - $this->effective_intelligence_config = $var; - - return $this; - } - - /** - * The trial configuration of the `IntelligenceConfig` resource. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.TrialConfig trial_config = 7; - * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig\TrialConfig|null - */ - public function getTrialConfig() - { - return $this->trial_config; - } - - public function hasTrialConfig() - { - return isset($this->trial_config); - } - - public function clearTrialConfig() - { - unset($this->trial_config); - } - - /** - * The trial configuration of the `IntelligenceConfig` resource. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.TrialConfig trial_config = 7; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig\TrialConfig $var - * @return $this - */ - public function setTrialConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig\TrialConfig::class); - $this->trial_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EditionConfig.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EditionConfig.php deleted file mode 100644 index e25ed383c629..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EditionConfig.php +++ /dev/null @@ -1,92 +0,0 @@ -google.storage.control.v2.IntelligenceConfig.EditionConfig - */ -class EditionConfig -{ - /** - * This is an unknown edition of the resource. - * - * Generated from protobuf enum EDITION_CONFIG_UNSPECIFIED = 0; - */ - const EDITION_CONFIG_UNSPECIFIED = 0; - /** - * The inherited edition from the parent and filters. This is the default - * edition when there is no `IntelligenceConfig` setup for a GCP resource. - * - * Generated from protobuf enum INHERIT = 1; - */ - const INHERIT = 1; - /** - * The edition configuration is disabled for the `IntelligenceConfig` - * resource and its children. Filters are not applicable. - * - * Generated from protobuf enum DISABLED = 2; - */ - const DISABLED = 2; - /** - * The `IntelligenceConfig` resource is of STANDARD edition. - * - * Generated from protobuf enum STANDARD = 3; - */ - const STANDARD = 3; - /** - * The `IntelligenceConfig` resource is available in `TRIAL` edition. During - * the trial period, Cloud Storage does not charge for Storage Intelligence - * usage. You can specify the buckets to include in the trial period by - * using filters. At the end of the trial period, the `IntelligenceConfig` - * resource is upgraded to `STANDARD` edition. - * - * Generated from protobuf enum TRIAL = 5; - */ - const TRIAL = 5; - /** - * The `IntelligenceConfig` resource is of ESSENTIALS edition. - * - * Generated from protobuf enum ESSENTIALS = 6; - */ - const ESSENTIALS = 6; - - private static $valueToName = [ - self::EDITION_CONFIG_UNSPECIFIED => 'EDITION_CONFIG_UNSPECIFIED', - self::INHERIT => 'INHERIT', - self::DISABLED => 'DISABLED', - self::STANDARD => 'STANDARD', - self::TRIAL => 'TRIAL', - self::ESSENTIALS => 'ESSENTIALS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EffectiveIntelligenceConfig.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EffectiveIntelligenceConfig.php deleted file mode 100644 index 1cd4c633cd56..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EffectiveIntelligenceConfig.php +++ /dev/null @@ -1,113 +0,0 @@ -google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig - */ -class EffectiveIntelligenceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The `IntelligenceConfig` edition that is applicable for the - * resource. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEdition effective_edition = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $effective_edition = 0; - /** - * Output only. The `IntelligenceConfig` resource that is applied for the - * target resource. Format: - * `{organizations|folders|projects}/{id}/locations/{location}/intelligenceConfig` - * - * Generated from protobuf field string intelligence_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $intelligence_config = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $effective_edition - * Output only. The `IntelligenceConfig` edition that is applicable for the - * resource. - * @type string $intelligence_config - * Output only. The `IntelligenceConfig` resource that is applied for the - * target resource. Format: - * `{organizations|folders|projects}/{id}/locations/{location}/intelligenceConfig` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The `IntelligenceConfig` edition that is applicable for the - * resource. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEdition effective_edition = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getEffectiveEdition() - { - return $this->effective_edition; - } - - /** - * Output only. The `IntelligenceConfig` edition that is applicable for the - * resource. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEdition effective_edition = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setEffectiveEdition($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig\EffectiveIntelligenceConfig\EffectiveEdition::class); - $this->effective_edition = $var; - - return $this; - } - - /** - * Output only. The `IntelligenceConfig` resource that is applied for the - * target resource. Format: - * `{organizations|folders|projects}/{id}/locations/{location}/intelligenceConfig` - * - * Generated from protobuf field string intelligence_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getIntelligenceConfig() - { - return $this->intelligence_config; - } - - /** - * Output only. The `IntelligenceConfig` resource that is applied for the - * target resource. Format: - * `{organizations|folders|projects}/{id}/locations/{location}/intelligenceConfig` - * - * Generated from protobuf field string intelligence_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setIntelligenceConfig($var) - { - GPBUtil::checkString($var, True); - $this->intelligence_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EffectiveIntelligenceConfig/EffectiveEdition.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EffectiveIntelligenceConfig/EffectiveEdition.php deleted file mode 100644 index d08d009cefbb..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/EffectiveIntelligenceConfig/EffectiveEdition.php +++ /dev/null @@ -1,61 +0,0 @@ -google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEdition - */ -class EffectiveEdition -{ - /** - * This is an unknown edition of the resource. - * - * Generated from protobuf enum EFFECTIVE_EDITION_UNSPECIFIED = 0; - */ - const EFFECTIVE_EDITION_UNSPECIFIED = 0; - /** - * No edition. - * - * Generated from protobuf enum NONE = 1; - */ - const NONE = 1; - /** - * The `IntelligenceConfig` resource is of STANDARD edition. - * - * Generated from protobuf enum STANDARD = 2; - */ - const STANDARD = 2; - - private static $valueToName = [ - self::EFFECTIVE_EDITION_UNSPECIFIED => 'EFFECTIVE_EDITION_UNSPECIFIED', - self::NONE => 'NONE', - self::STANDARD => 'STANDARD', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter.php deleted file mode 100644 index 0a2864c8cf60..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter.php +++ /dev/null @@ -1,185 +0,0 @@ -google.storage.control.v2.IntelligenceConfig.Filter - */ -class Filter extends \Google\Protobuf\Internal\Message -{ - protected $cloud_storage_locations; - protected $cloud_storage_buckets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageLocations $included_cloud_storage_locations - * Bucket locations to include. - * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageLocations $excluded_cloud_storage_locations - * Bucket locations to exclude. - * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageBuckets $included_cloud_storage_buckets - * Buckets to include. - * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageBuckets $excluded_cloud_storage_buckets - * Buckets to exclude. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Bucket locations to include. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations included_cloud_storage_locations = 1; - * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageLocations|null - */ - public function getIncludedCloudStorageLocations() - { - return $this->readOneof(1); - } - - public function hasIncludedCloudStorageLocations() - { - return $this->hasOneof(1); - } - - /** - * Bucket locations to include. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations included_cloud_storage_locations = 1; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageLocations $var - * @return $this - */ - public function setIncludedCloudStorageLocations($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageLocations::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Bucket locations to exclude. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations excluded_cloud_storage_locations = 2; - * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageLocations|null - */ - public function getExcludedCloudStorageLocations() - { - return $this->readOneof(2); - } - - public function hasExcludedCloudStorageLocations() - { - return $this->hasOneof(2); - } - - /** - * Bucket locations to exclude. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations excluded_cloud_storage_locations = 2; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageLocations $var - * @return $this - */ - public function setExcludedCloudStorageLocations($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageLocations::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Buckets to include. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets included_cloud_storage_buckets = 3; - * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageBuckets|null - */ - public function getIncludedCloudStorageBuckets() - { - return $this->readOneof(3); - } - - public function hasIncludedCloudStorageBuckets() - { - return $this->hasOneof(3); - } - - /** - * Buckets to include. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets included_cloud_storage_buckets = 3; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageBuckets $var - * @return $this - */ - public function setIncludedCloudStorageBuckets($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageBuckets::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Buckets to exclude. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets excluded_cloud_storage_buckets = 4; - * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageBuckets|null - */ - public function getExcludedCloudStorageBuckets() - { - return $this->readOneof(4); - } - - public function hasExcludedCloudStorageBuckets() - { - return $this->hasOneof(4); - } - - /** - * Buckets to exclude. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets excluded_cloud_storage_buckets = 4; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageBuckets $var - * @return $this - */ - public function setExcludedCloudStorageBuckets($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig\Filter\CloudStorageBuckets::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getCloudStorageLocations() - { - return $this->whichOneof("cloud_storage_locations"); - } - - /** - * @return string - */ - public function getCloudStorageBuckets() - { - return $this->whichOneof("cloud_storage_buckets"); - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter/CloudStorageBuckets.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter/CloudStorageBuckets.php deleted file mode 100644 index cb8ce36961af..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter/CloudStorageBuckets.php +++ /dev/null @@ -1,95 +0,0 @@ -google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets - */ -class CloudStorageBuckets extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A regex pattern for matching bucket names. Regex should - * follow the syntax specified in - * [google/re2](https://github.com/google/re2). For example, - * `^sample_.*` matches all buckets of the form - * `gs://sample_bucket-1`, `gs://sample_bucket-2`, - * `gs://sample_bucket-n` but not `gs://test_sample_bucket`. - * If you want to match a single bucket, say `gs://sample_bucket`, - * use `sample_bucket`. - * - * Generated from protobuf field repeated string bucket_id_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $bucket_id_regexes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $bucket_id_regexes - * Optional. A regex pattern for matching bucket names. Regex should - * follow the syntax specified in - * [google/re2](https://github.com/google/re2). For example, - * `^sample_.*` matches all buckets of the form - * `gs://sample_bucket-1`, `gs://sample_bucket-2`, - * `gs://sample_bucket-n` but not `gs://test_sample_bucket`. - * If you want to match a single bucket, say `gs://sample_bucket`, - * use `sample_bucket`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A regex pattern for matching bucket names. Regex should - * follow the syntax specified in - * [google/re2](https://github.com/google/re2). For example, - * `^sample_.*` matches all buckets of the form - * `gs://sample_bucket-1`, `gs://sample_bucket-2`, - * `gs://sample_bucket-n` but not `gs://test_sample_bucket`. - * If you want to match a single bucket, say `gs://sample_bucket`, - * use `sample_bucket`. - * - * Generated from protobuf field repeated string bucket_id_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getBucketIdRegexes() - { - return $this->bucket_id_regexes; - } - - /** - * Optional. A regex pattern for matching bucket names. Regex should - * follow the syntax specified in - * [google/re2](https://github.com/google/re2). For example, - * `^sample_.*` matches all buckets of the form - * `gs://sample_bucket-1`, `gs://sample_bucket-2`, - * `gs://sample_bucket-n` but not `gs://test_sample_bucket`. - * If you want to match a single bucket, say `gs://sample_bucket`, - * use `sample_bucket`. - * - * Generated from protobuf field repeated string bucket_id_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setBucketIdRegexes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->bucket_id_regexes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter/CloudStorageLocations.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter/CloudStorageLocations.php deleted file mode 100644 index 0b3c6dfcf1ec..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/Filter/CloudStorageLocations.php +++ /dev/null @@ -1,75 +0,0 @@ -google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations - */ -class CloudStorageLocations extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Bucket locations. Location can be any of the Cloud Storage - * regions specified in lower case format. For example, `us-east1`, - * `us-west1`. - * - * Generated from protobuf field repeated string locations = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $locations - * Optional. Bucket locations. Location can be any of the Cloud Storage - * regions specified in lower case format. For example, `us-east1`, - * `us-west1`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Bucket locations. Location can be any of the Cloud Storage - * regions specified in lower case format. For example, `us-east1`, - * `us-west1`. - * - * Generated from protobuf field repeated string locations = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getLocations() - { - return $this->locations; - } - - /** - * Optional. Bucket locations. Location can be any of the Cloud Storage - * regions specified in lower case format. For example, `us-east1`, - * `us-west1`. - * - * Generated from protobuf field repeated string locations = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/TrialConfig.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/TrialConfig.php deleted file mode 100644 index df28258e6a9a..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceConfig/TrialConfig.php +++ /dev/null @@ -1,77 +0,0 @@ -google.storage.control.v2.IntelligenceConfig.TrialConfig - */ -class TrialConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time at which the trial expires. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $expire_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $expire_time - * Output only. The time at which the trial expires. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time at which the trial expires. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpireTime() - { - return $this->expire_time; - } - - public function hasExpireTime() - { - return isset($this->expire_time); - } - - public function clearExpireTime() - { - unset($this->expire_time); - } - - /** - * Output only. The time at which the trial expires. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpireTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expire_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding.php deleted file mode 100644 index b5cd9a1768ec..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding.php +++ /dev/null @@ -1,594 +0,0 @@ -google.storage.control.v2.IntelligenceFinding - */ -class IntelligenceFinding extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of `IntelligenceFinding`. - * Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. A short description about the finding. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $description = ''; - /** - * Output only. Type of this finding. - * - * Generated from protobuf field .google.storage.control.v2.FindingType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $type = 0; - /** - * Output only. Category of this finding. - * - * Generated from protobuf field .google.storage.control.v2.FindingCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $category = 0; - /** - * Output only. Severity of the finding. - * - * Generated from protobuf field .google.storage.control.v2.FindingSeverity severity = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $severity = 0; - /** - * Output only. The time at which the finding was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which the finding was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The fully qualified resource name of the resource that this - * `IntelligenceFinding` applies to. eg: - * - `storage.googleapis.com/projects/_/buckets/b1` - * - `cloudresourecemanager.googleapis.com/projects/p1` - * - * Generated from protobuf field string target_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target_resource = ''; - /** - * Output only. Contains GCP resource names that are - * relevant to this `IntelligenceFinding`. The `target_resource` is also added - * as part of `associated_resources`. eg: - * - `storage.googleapis.com/projects/_/buckets/b1` - * - `cloudresourecemanager.googleapis.com/projects/p1` - * - * Generated from protobuf field repeated string associated_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $associated_resources; - /** - * Output only. The time interval during which the underlying data was used to - * generate this `IntelligenceFinding`. - * - * Generated from protobuf field .google.type.Interval observation_period = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $observation_period = null; - protected $intelligence_finding_details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of `IntelligenceFinding`. - * Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` - * @type string $description - * Output only. A short description about the finding. - * @type int $type - * Output only. Type of this finding. - * @type int $category - * Output only. Category of this finding. - * @type int $severity - * Output only. Severity of the finding. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the finding was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the finding was last updated. - * @type string $target_resource - * Output only. The fully qualified resource name of the resource that this - * `IntelligenceFinding` applies to. eg: - * - `storage.googleapis.com/projects/_/buckets/b1` - * - `cloudresourecemanager.googleapis.com/projects/p1` - * @type string[] $associated_resources - * Output only. Contains GCP resource names that are - * relevant to this `IntelligenceFinding`. The `target_resource` is also added - * as part of `associated_resources`. eg: - * - `storage.googleapis.com/projects/_/buckets/b1` - * - `cloudresourecemanager.googleapis.com/projects/p1` - * @type \Google\Type\Interval $observation_period - * Output only. The time interval during which the underlying data was used to - * generate this `IntelligenceFinding`. - * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike $coldline_and_archival_storage_operations_spike - * Output only. `IntelligenceFinding` about a spike in Class A/B operations - * on Coldline or Archive Cloud Storage objects. - * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike $throttled_requests_spike - * Output only. `IntelligenceFinding` about a spike in throttled requests - * (429 errors) within a project. - * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike $cross_region_egress_spike - * Output only. `IntelligenceFinding` about a spike in cross-region egress. - * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\StorageGrowthAboveTrend $storage_growth_above_trend - * Output only. `IntelligenceFinding` about growth in storage above the - * expected trend. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of `IntelligenceFinding`. - * Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of `IntelligenceFinding`. - * Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. A short description about the finding. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Output only. A short description about the finding. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Type of this finding. - * - * Generated from protobuf field .google.storage.control.v2.FindingType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Output only. Type of this finding. - * - * Generated from protobuf field .google.storage.control.v2.FindingType type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\FindingType::class); - $this->type = $var; - - return $this; - } - - /** - * Output only. Category of this finding. - * - * Generated from protobuf field .google.storage.control.v2.FindingCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getCategory() - { - return $this->category; - } - - /** - * Output only. Category of this finding. - * - * Generated from protobuf field .google.storage.control.v2.FindingCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\FindingCategory::class); - $this->category = $var; - - return $this; - } - - /** - * Output only. Severity of the finding. - * - * Generated from protobuf field .google.storage.control.v2.FindingSeverity severity = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * Output only. Severity of the finding. - * - * Generated from protobuf field .google.storage.control.v2.FindingSeverity severity = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\FindingSeverity::class); - $this->severity = $var; - - return $this; - } - - /** - * Output only. The time at which the finding was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time at which the finding was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time at which the finding was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time at which the finding was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The fully qualified resource name of the resource that this - * `IntelligenceFinding` applies to. eg: - * - `storage.googleapis.com/projects/_/buckets/b1` - * - `cloudresourecemanager.googleapis.com/projects/p1` - * - * Generated from protobuf field string target_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTargetResource() - { - return $this->target_resource; - } - - /** - * Output only. The fully qualified resource name of the resource that this - * `IntelligenceFinding` applies to. eg: - * - `storage.googleapis.com/projects/_/buckets/b1` - * - `cloudresourecemanager.googleapis.com/projects/p1` - * - * Generated from protobuf field string target_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTargetResource($var) - { - GPBUtil::checkString($var, True); - $this->target_resource = $var; - - return $this; - } - - /** - * Output only. Contains GCP resource names that are - * relevant to this `IntelligenceFinding`. The `target_resource` is also added - * as part of `associated_resources`. eg: - * - `storage.googleapis.com/projects/_/buckets/b1` - * - `cloudresourecemanager.googleapis.com/projects/p1` - * - * Generated from protobuf field repeated string associated_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField - */ - public function getAssociatedResources() - { - return $this->associated_resources; - } - - /** - * Output only. Contains GCP resource names that are - * relevant to this `IntelligenceFinding`. The `target_resource` is also added - * as part of `associated_resources`. eg: - * - `storage.googleapis.com/projects/_/buckets/b1` - * - `cloudresourecemanager.googleapis.com/projects/p1` - * - * Generated from protobuf field repeated string associated_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string[] $var - * @return $this - */ - public function setAssociatedResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->associated_resources = $arr; - - return $this; - } - - /** - * Output only. The time interval during which the underlying data was used to - * generate this `IntelligenceFinding`. - * - * Generated from protobuf field .google.type.Interval observation_period = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Type\Interval|null - */ - public function getObservationPeriod() - { - return $this->observation_period; - } - - public function hasObservationPeriod() - { - return isset($this->observation_period); - } - - public function clearObservationPeriod() - { - unset($this->observation_period); - } - - /** - * Output only. The time interval during which the underlying data was used to - * generate this `IntelligenceFinding`. - * - * Generated from protobuf field .google.type.Interval observation_period = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Type\Interval $var - * @return $this - */ - public function setObservationPeriod($var) - { - GPBUtil::checkMessage($var, \Google\Type\Interval::class); - $this->observation_period = $var; - - return $this; - } - - /** - * Output only. `IntelligenceFinding` about a spike in Class A/B operations - * on Coldline or Archive Cloud Storage objects. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike coldline_and_archival_storage_operations_spike = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike|null - */ - public function getColdlineAndArchivalStorageOperationsSpike() - { - return $this->readOneof(11); - } - - public function hasColdlineAndArchivalStorageOperationsSpike() - { - return $this->hasOneof(11); - } - - /** - * Output only. `IntelligenceFinding` about a spike in Class A/B operations - * on Coldline or Archive Cloud Storage objects. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike coldline_and_archival_storage_operations_spike = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike $var - * @return $this - */ - public function setColdlineAndArchivalStorageOperationsSpike($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Output only. `IntelligenceFinding` about a spike in throttled requests - * (429 errors) within a project. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike throttled_requests_spike = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike|null - */ - public function getThrottledRequestsSpike() - { - return $this->readOneof(12); - } - - public function hasThrottledRequestsSpike() - { - return $this->hasOneof(12); - } - - /** - * Output only. `IntelligenceFinding` about a spike in throttled requests - * (429 errors) within a project. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike throttled_requests_spike = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike $var - * @return $this - */ - public function setThrottledRequestsSpike($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Output only. `IntelligenceFinding` about a spike in cross-region egress. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike cross_region_egress_spike = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike|null - */ - public function getCrossRegionEgressSpike() - { - return $this->readOneof(13); - } - - public function hasCrossRegionEgressSpike() - { - return $this->hasOneof(13); - } - - /** - * Output only. `IntelligenceFinding` about a spike in cross-region egress. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike cross_region_egress_spike = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike $var - * @return $this - */ - public function setCrossRegionEgressSpike($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Output only. `IntelligenceFinding` about growth in storage above the - * expected trend. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrend storage_growth_above_trend = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Storage\Control\V2\IntelligenceFinding\StorageGrowthAboveTrend|null - */ - public function getStorageGrowthAboveTrend() - { - return $this->readOneof(14); - } - - public function hasStorageGrowthAboveTrend() - { - return $this->hasOneof(14); - } - - /** - * Output only. `IntelligenceFinding` about growth in storage above the - * expected trend. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrend storage_growth_above_trend = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\StorageGrowthAboveTrend $var - * @return $this - */ - public function setStorageGrowthAboveTrend($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\StorageGrowthAboveTrend::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * @return string - */ - public function getIntelligenceFindingDetails() - { - return $this->whichOneof("intelligence_finding_details"); - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike.php deleted file mode 100644 index e14c8e9f9f6b..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike.php +++ /dev/null @@ -1,142 +0,0 @@ -google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike - */ -class ColdlineAndArchivalStorageOperationsSpike extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The percentage increase in operations across the project. - * - * Generated from protobuf field double percentage_increase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $percentage_increase = 0.0; - /** - * Output only. The total count of operations across the project. - * - * Generated from protobuf field int64 total_operations_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $total_operations_count = 0; - /** - * Output only. A list of the top buckets driving the increase in - * operations. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $top_buckets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $percentage_increase - * Output only. The percentage increase in operations across the project. - * @type int|string $total_operations_count - * Output only. The total count of operations across the project. - * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution[] $top_buckets - * Output only. A list of the top buckets driving the increase in - * operations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The percentage increase in operations across the project. - * - * Generated from protobuf field double percentage_increase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getPercentageIncrease() - { - return $this->percentage_increase; - } - - /** - * Output only. The percentage increase in operations across the project. - * - * Generated from protobuf field double percentage_increase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setPercentageIncrease($var) - { - GPBUtil::checkDouble($var); - $this->percentage_increase = $var; - - return $this; - } - - /** - * Output only. The total count of operations across the project. - * - * Generated from protobuf field int64 total_operations_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getTotalOperationsCount() - { - return $this->total_operations_count; - } - - /** - * Output only. The total count of operations across the project. - * - * Generated from protobuf field int64 total_operations_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setTotalOperationsCount($var) - { - GPBUtil::checkInt64($var); - $this->total_operations_count = $var; - - return $this; - } - - /** - * Output only. A list of the top buckets driving the increase in - * operations. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution> - */ - public function getTopBuckets() - { - return $this->top_buckets; - } - - /** - * Output only. A list of the top buckets driving the increase in - * operations. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution[] $var - * @return $this - */ - public function setTopBuckets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution::class); - $this->top_buckets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution.php deleted file mode 100644 index 2e764b7601cb..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution.php +++ /dev/null @@ -1,213 +0,0 @@ -google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution - */ -class BucketContribution extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the bucket. - * - * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $bucket = ''; - /** - * Output only. The percentage increase in operations for the bucket. - * - * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $percentage_increase = 0.0; - /** - * Output only. The total count of operations for the bucket. - * - * Generated from protobuf field int64 total_operations_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $total_operations_count = 0; - protected $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $bucket - * Output only. The name of the bucket. - * @type float $percentage_increase - * Output only. The percentage increase in operations for the bucket. - * @type int|string $total_operations_count - * Output only. The total count of operations for the bucket. - * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution\Contribution $contribution - * Output only. The details about the contribution of the bucket. - * @type \Google\Rpc\Status $error - * Output only. The error related to accessing the details about the - * contribution of the bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the bucket. - * - * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getBucket() - { - return $this->bucket; - } - - /** - * Output only. The name of the bucket. - * - * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBucket($var) - { - GPBUtil::checkString($var, True); - $this->bucket = $var; - - return $this; - } - - /** - * Output only. The percentage increase in operations for the bucket. - * - * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getPercentageIncrease() - { - return $this->percentage_increase; - } - - /** - * Output only. The percentage increase in operations for the bucket. - * - * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setPercentageIncrease($var) - { - GPBUtil::checkDouble($var); - $this->percentage_increase = $var; - - return $this; - } - - /** - * Output only. The total count of operations for the bucket. - * - * Generated from protobuf field int64 total_operations_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getTotalOperationsCount() - { - return $this->total_operations_count; - } - - /** - * Output only. The total count of operations for the bucket. - * - * Generated from protobuf field int64 total_operations_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setTotalOperationsCount($var) - { - GPBUtil::checkInt64($var); - $this->total_operations_count = $var; - - return $this; - } - - /** - * Output only. The details about the contribution of the bucket. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.Contribution contribution = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution\Contribution|null - */ - public function getContribution() - { - return $this->readOneof(4); - } - - public function hasContribution() - { - return $this->hasOneof(4); - } - - /** - * Output only. The details about the contribution of the bucket. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.Contribution contribution = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution\Contribution $var - * @return $this - */ - public function setContribution($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution\Contribution::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output only. The error related to accessing the details about the - * contribution of the bucket. - * - * Generated from protobuf field .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Rpc\Status|null - */ - public function getError() - { - return $this->readOneof(5); - } - - public function hasError() - { - return $this->hasOneof(5); - } - - /** - * Output only. The error related to accessing the details about the - * contribution of the bucket. - * - * Generated from protobuf field .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getDetails() - { - return $this->whichOneof("details"); - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution/Contribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution/Contribution.php deleted file mode 100644 index 654bb2cc72ea..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution/Contribution.php +++ /dev/null @@ -1,72 +0,0 @@ -google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.Contribution - */ -class Contribution extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. A list of the top object prefixes driving the increase - * in operations. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.Contribution.PrefixContribution top_prefixes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $top_prefixes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution\Contribution\PrefixContribution[] $top_prefixes - * Output only. A list of the top object prefixes driving the increase - * in operations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. A list of the top object prefixes driving the increase - * in operations. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.Contribution.PrefixContribution top_prefixes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution\Contribution\PrefixContribution> - */ - public function getTopPrefixes() - { - return $this->top_prefixes; - } - - /** - * Output only. A list of the top object prefixes driving the increase - * in operations. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.Contribution.PrefixContribution top_prefixes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution\Contribution\PrefixContribution[] $var - * @return $this - */ - public function setTopPrefixes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ColdlineAndArchivalStorageOperationsSpike\BucketContribution\Contribution\PrefixContribution::class); - $this->top_prefixes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution/Contribution/PrefixContribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution/Contribution/PrefixContribution.php deleted file mode 100644 index c6d5205647fe..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ColdlineAndArchivalStorageOperationsSpike/BucketContribution/Contribution/PrefixContribution.php +++ /dev/null @@ -1,143 +0,0 @@ -google.storage.control.v2.IntelligenceFinding.ColdlineAndArchivalStorageOperationsSpike.BucketContribution.Contribution.PrefixContribution - */ -class PrefixContribution extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The object prefix. - * Format: `a/b/c`, 'a/b/d', etc. - * - * Generated from protobuf field string prefix = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $prefix = ''; - /** - * Output only. The percentage increase in operations for the object - * prefix. - * - * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $percentage_increase = 0.0; - /** - * Output only. The total count of operations for the object prefix. - * - * Generated from protobuf field int64 total_operations_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $total_operations_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $prefix - * Output only. The object prefix. - * Format: `a/b/c`, 'a/b/d', etc. - * @type float $percentage_increase - * Output only. The percentage increase in operations for the object - * prefix. - * @type int|string $total_operations_count - * Output only. The total count of operations for the object prefix. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The object prefix. - * Format: `a/b/c`, 'a/b/d', etc. - * - * Generated from protobuf field string prefix = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPrefix() - { - return $this->prefix; - } - - /** - * Output only. The object prefix. - * Format: `a/b/c`, 'a/b/d', etc. - * - * Generated from protobuf field string prefix = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPrefix($var) - { - GPBUtil::checkString($var, True); - $this->prefix = $var; - - return $this; - } - - /** - * Output only. The percentage increase in operations for the object - * prefix. - * - * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getPercentageIncrease() - { - return $this->percentage_increase; - } - - /** - * Output only. The percentage increase in operations for the object - * prefix. - * - * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setPercentageIncrease($var) - { - GPBUtil::checkDouble($var); - $this->percentage_increase = $var; - - return $this; - } - - /** - * Output only. The total count of operations for the object prefix. - * - * Generated from protobuf field int64 total_operations_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getTotalOperationsCount() - { - return $this->total_operations_count; - } - - /** - * Output only. The total count of operations for the object prefix. - * - * Generated from protobuf field int64 total_operations_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setTotalOperationsCount($var) - { - GPBUtil::checkInt64($var); - $this->total_operations_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike.php deleted file mode 100644 index 2fdffc786f54..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike.php +++ /dev/null @@ -1,149 +0,0 @@ -google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike - */ -class CrossRegionEgressSpike extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The total cross-region egress volume in bytes across the - * project. - * - * Generated from protobuf field int64 total_egress_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $total_egress_bytes = 0; - /** - * Output only. The percentage increase in cross-region egress across the - * project. - * - * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $percentage_increase = 0.0; - /** - * Output only. A list of top buckets driving the increase in cross-region - * egress. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $top_buckets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $total_egress_bytes - * Output only. The total cross-region egress volume in bytes across the - * project. - * @type float $percentage_increase - * Output only. The percentage increase in cross-region egress across the - * project. - * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution[] $top_buckets - * Output only. A list of top buckets driving the increase in cross-region - * egress. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The total cross-region egress volume in bytes across the - * project. - * - * Generated from protobuf field int64 total_egress_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getTotalEgressBytes() - { - return $this->total_egress_bytes; - } - - /** - * Output only. The total cross-region egress volume in bytes across the - * project. - * - * Generated from protobuf field int64 total_egress_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setTotalEgressBytes($var) - { - GPBUtil::checkInt64($var); - $this->total_egress_bytes = $var; - - return $this; - } - - /** - * Output only. The percentage increase in cross-region egress across the - * project. - * - * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getPercentageIncrease() - { - return $this->percentage_increase; - } - - /** - * Output only. The percentage increase in cross-region egress across the - * project. - * - * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setPercentageIncrease($var) - { - GPBUtil::checkDouble($var); - $this->percentage_increase = $var; - - return $this; - } - - /** - * Output only. A list of top buckets driving the increase in cross-region - * egress. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution> - */ - public function getTopBuckets() - { - return $this->top_buckets; - } - - /** - * Output only. A list of top buckets driving the increase in cross-region - * egress. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution[] $var - * @return $this - */ - public function setTopBuckets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution::class); - $this->top_buckets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution.php deleted file mode 100644 index fe0b3f5af9e5..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution.php +++ /dev/null @@ -1,221 +0,0 @@ -google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution - */ -class BucketContribution extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the bucket. - * - * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $bucket = ''; - /** - * Output only. The total cross-region egress volume in bytes for the - * bucket. - * - * Generated from protobuf field int64 total_egress_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $total_egress_bytes = 0; - /** - * Output only. The percentage increase in cross-region egress for the - * bucket. - * - * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $percentage_increase = 0.0; - protected $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $bucket - * Output only. The name of the bucket. - * @type int|string $total_egress_bytes - * Output only. The total cross-region egress volume in bytes for the - * bucket. - * @type float $percentage_increase - * Output only. The percentage increase in cross-region egress for the - * bucket. - * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution\Contribution $contribution - * Output only. The details about the contribution of the bucket. - * @type \Google\Rpc\Status $error - * Output only. The error related to accessing the details about the - * contribution of the bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the bucket. - * - * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getBucket() - { - return $this->bucket; - } - - /** - * Output only. The name of the bucket. - * - * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBucket($var) - { - GPBUtil::checkString($var, True); - $this->bucket = $var; - - return $this; - } - - /** - * Output only. The total cross-region egress volume in bytes for the - * bucket. - * - * Generated from protobuf field int64 total_egress_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getTotalEgressBytes() - { - return $this->total_egress_bytes; - } - - /** - * Output only. The total cross-region egress volume in bytes for the - * bucket. - * - * Generated from protobuf field int64 total_egress_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setTotalEgressBytes($var) - { - GPBUtil::checkInt64($var); - $this->total_egress_bytes = $var; - - return $this; - } - - /** - * Output only. The percentage increase in cross-region egress for the - * bucket. - * - * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getPercentageIncrease() - { - return $this->percentage_increase; - } - - /** - * Output only. The percentage increase in cross-region egress for the - * bucket. - * - * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setPercentageIncrease($var) - { - GPBUtil::checkDouble($var); - $this->percentage_increase = $var; - - return $this; - } - - /** - * Output only. The details about the contribution of the bucket. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution contribution = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution\Contribution|null - */ - public function getContribution() - { - return $this->readOneof(4); - } - - public function hasContribution() - { - return $this->hasOneof(4); - } - - /** - * Output only. The details about the contribution of the bucket. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution contribution = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution\Contribution $var - * @return $this - */ - public function setContribution($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution\Contribution::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output only. The error related to accessing the details about the - * contribution of the bucket. - * - * Generated from protobuf field .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Rpc\Status|null - */ - public function getError() - { - return $this->readOneof(5); - } - - public function hasError() - { - return $this->hasOneof(5); - } - - /** - * Output only. The error related to accessing the details about the - * contribution of the bucket. - * - * Generated from protobuf field .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getDetails() - { - return $this->whichOneof("details"); - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution/Contribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution/Contribution.php deleted file mode 100644 index c1171fae3f6b..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution/Contribution.php +++ /dev/null @@ -1,72 +0,0 @@ -google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution - */ -class Contribution extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. A list of the top object prefixes driving the increase - * in cross-region egress. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution.PrefixContribution top_prefixes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $top_prefixes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution\Contribution\PrefixContribution[] $top_prefixes - * Output only. A list of the top object prefixes driving the increase - * in cross-region egress. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. A list of the top object prefixes driving the increase - * in cross-region egress. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution.PrefixContribution top_prefixes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution\Contribution\PrefixContribution> - */ - public function getTopPrefixes() - { - return $this->top_prefixes; - } - - /** - * Output only. A list of the top object prefixes driving the increase - * in cross-region egress. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution.PrefixContribution top_prefixes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution\Contribution\PrefixContribution[] $var - * @return $this - */ - public function setTopPrefixes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\CrossRegionEgressSpike\BucketContribution\Contribution\PrefixContribution::class); - $this->top_prefixes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution/Contribution/PrefixContribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution/Contribution/PrefixContribution.php deleted file mode 100644 index 0f3fb5daa146..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/CrossRegionEgressSpike/BucketContribution/Contribution/PrefixContribution.php +++ /dev/null @@ -1,148 +0,0 @@ -google.storage.control.v2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution.PrefixContribution - */ -class PrefixContribution extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The object prefix. - * Format: `a/b/c`, 'a/b/d', etc. - * - * Generated from protobuf field string prefix = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $prefix = ''; - /** - * Output only. The total cross-region egress volume in bytes from the - * object prefix. - * - * Generated from protobuf field int64 total_egress_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $total_egress_bytes = 0; - /** - * Output only. The percentage increase in cross-region egress for the - * object prefix. - * - * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $percentage_increase = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $prefix - * Output only. The object prefix. - * Format: `a/b/c`, 'a/b/d', etc. - * @type int|string $total_egress_bytes - * Output only. The total cross-region egress volume in bytes from the - * object prefix. - * @type float $percentage_increase - * Output only. The percentage increase in cross-region egress for the - * object prefix. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The object prefix. - * Format: `a/b/c`, 'a/b/d', etc. - * - * Generated from protobuf field string prefix = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPrefix() - { - return $this->prefix; - } - - /** - * Output only. The object prefix. - * Format: `a/b/c`, 'a/b/d', etc. - * - * Generated from protobuf field string prefix = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPrefix($var) - { - GPBUtil::checkString($var, True); - $this->prefix = $var; - - return $this; - } - - /** - * Output only. The total cross-region egress volume in bytes from the - * object prefix. - * - * Generated from protobuf field int64 total_egress_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getTotalEgressBytes() - { - return $this->total_egress_bytes; - } - - /** - * Output only. The total cross-region egress volume in bytes from the - * object prefix. - * - * Generated from protobuf field int64 total_egress_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setTotalEgressBytes($var) - { - GPBUtil::checkInt64($var); - $this->total_egress_bytes = $var; - - return $this; - } - - /** - * Output only. The percentage increase in cross-region egress for the - * object prefix. - * - * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getPercentageIncrease() - { - return $this->percentage_increase; - } - - /** - * Output only. The percentage increase in cross-region egress for the - * object prefix. - * - * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setPercentageIncrease($var) - { - GPBUtil::checkDouble($var); - $this->percentage_increase = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/StorageGrowthAboveTrend.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/StorageGrowthAboveTrend.php deleted file mode 100644 index beb651194f74..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/StorageGrowthAboveTrend.php +++ /dev/null @@ -1,140 +0,0 @@ -google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrend - */ -class StorageGrowthAboveTrend extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The total storage growth in bytes. - * - * Generated from protobuf field int64 total_storage_growth_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $total_storage_growth_bytes = 0; - /** - * Output only. The percentage increase in storage growth. - * - * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $percentage_increase = 0.0; - /** - * Output only. A list of top buckets driving the increase in storage - * growth. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrend.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $top_buckets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $total_storage_growth_bytes - * Output only. The total storage growth in bytes. - * @type float $percentage_increase - * Output only. The percentage increase in storage growth. - * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\StorageGrowthAboveTrend\BucketContribution[] $top_buckets - * Output only. A list of top buckets driving the increase in storage - * growth. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The total storage growth in bytes. - * - * Generated from protobuf field int64 total_storage_growth_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getTotalStorageGrowthBytes() - { - return $this->total_storage_growth_bytes; - } - - /** - * Output only. The total storage growth in bytes. - * - * Generated from protobuf field int64 total_storage_growth_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setTotalStorageGrowthBytes($var) - { - GPBUtil::checkInt64($var); - $this->total_storage_growth_bytes = $var; - - return $this; - } - - /** - * Output only. The percentage increase in storage growth. - * - * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getPercentageIncrease() - { - return $this->percentage_increase; - } - - /** - * Output only. The percentage increase in storage growth. - * - * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setPercentageIncrease($var) - { - GPBUtil::checkDouble($var); - $this->percentage_increase = $var; - - return $this; - } - - /** - * Output only. A list of top buckets driving the increase in storage - * growth. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrend.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Storage\Control\V2\IntelligenceFinding\StorageGrowthAboveTrend\BucketContribution> - */ - public function getTopBuckets() - { - return $this->top_buckets; - } - - /** - * Output only. A list of top buckets driving the increase in storage - * growth. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrend.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\StorageGrowthAboveTrend\BucketContribution[] $var - * @return $this - */ - public function setTopBuckets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\StorageGrowthAboveTrend\BucketContribution::class); - $this->top_buckets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/StorageGrowthAboveTrend/BucketContribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/StorageGrowthAboveTrend/BucketContribution.php deleted file mode 100644 index 35aa541e0bba..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/StorageGrowthAboveTrend/BucketContribution.php +++ /dev/null @@ -1,180 +0,0 @@ -google.storage.control.v2.IntelligenceFinding.StorageGrowthAboveTrend.BucketContribution - */ -class BucketContribution extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the bucket. - * - * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $bucket = ''; - /** - * Output only. The total storage growth in bytes for the bucket. - * - * Generated from protobuf field int64 total_storage_growth_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $total_storage_growth_bytes = 0; - /** - * Output only. The percentage increase in storage growth for the bucket. - * - * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $percentage_increase = 0.0; - protected $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $bucket - * Output only. The name of the bucket. - * @type int|string $total_storage_growth_bytes - * Output only. The total storage growth in bytes for the bucket. - * @type float $percentage_increase - * Output only. The percentage increase in storage growth for the bucket. - * @type \Google\Rpc\Status $error - * Output only. The error related to accessing the details about the - * contribution of the bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the bucket. - * - * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getBucket() - { - return $this->bucket; - } - - /** - * Output only. The name of the bucket. - * - * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBucket($var) - { - GPBUtil::checkString($var, True); - $this->bucket = $var; - - return $this; - } - - /** - * Output only. The total storage growth in bytes for the bucket. - * - * Generated from protobuf field int64 total_storage_growth_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getTotalStorageGrowthBytes() - { - return $this->total_storage_growth_bytes; - } - - /** - * Output only. The total storage growth in bytes for the bucket. - * - * Generated from protobuf field int64 total_storage_growth_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setTotalStorageGrowthBytes($var) - { - GPBUtil::checkInt64($var); - $this->total_storage_growth_bytes = $var; - - return $this; - } - - /** - * Output only. The percentage increase in storage growth for the bucket. - * - * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getPercentageIncrease() - { - return $this->percentage_increase; - } - - /** - * Output only. The percentage increase in storage growth for the bucket. - * - * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setPercentageIncrease($var) - { - GPBUtil::checkDouble($var); - $this->percentage_increase = $var; - - return $this; - } - - /** - * Output only. The error related to accessing the details about the - * contribution of the bucket. - * - * Generated from protobuf field .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Rpc\Status|null - */ - public function getError() - { - return $this->readOneof(5); - } - - public function hasError() - { - return $this->hasOneof(5); - } - - /** - * Output only. The error related to accessing the details about the - * contribution of the bucket. - * - * Generated from protobuf field .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getDetails() - { - return $this->whichOneof("details"); - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike.php deleted file mode 100644 index a030088c5041..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike.php +++ /dev/null @@ -1,145 +0,0 @@ -google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike - */ -class ThrottledRequestSpike extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The count of throttled requests across the project. - * - * Generated from protobuf field int64 throttled_requests = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $throttled_requests = 0; - /** - * Output only. The percentage increase in throttled requests across the - * project. - * - * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $percentage_increase = 0.0; - /** - * Output only. A list of top buckets driving the increase in throttled - * requests. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $top_buckets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $throttled_requests - * Output only. The count of throttled requests across the project. - * @type float $percentage_increase - * Output only. The percentage increase in throttled requests across the - * project. - * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution[] $top_buckets - * Output only. A list of top buckets driving the increase in throttled - * requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The count of throttled requests across the project. - * - * Generated from protobuf field int64 throttled_requests = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getThrottledRequests() - { - return $this->throttled_requests; - } - - /** - * Output only. The count of throttled requests across the project. - * - * Generated from protobuf field int64 throttled_requests = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setThrottledRequests($var) - { - GPBUtil::checkInt64($var); - $this->throttled_requests = $var; - - return $this; - } - - /** - * Output only. The percentage increase in throttled requests across the - * project. - * - * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getPercentageIncrease() - { - return $this->percentage_increase; - } - - /** - * Output only. The percentage increase in throttled requests across the - * project. - * - * Generated from protobuf field double percentage_increase = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setPercentageIncrease($var) - { - GPBUtil::checkDouble($var); - $this->percentage_increase = $var; - - return $this; - } - - /** - * Output only. A list of top buckets driving the increase in throttled - * requests. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution> - */ - public function getTopBuckets() - { - return $this->top_buckets; - } - - /** - * Output only. A list of top buckets driving the increase in throttled - * requests. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution top_buckets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution[] $var - * @return $this - */ - public function setTopBuckets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution::class); - $this->top_buckets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution.php deleted file mode 100644 index 5852e349655d..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution.php +++ /dev/null @@ -1,217 +0,0 @@ -google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution - */ -class BucketContribution extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the bucket. - * - * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $bucket = ''; - /** - * Output only. The count of throttled requests for the bucket. - * - * Generated from protobuf field int64 throttled_requests = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $throttled_requests = 0; - /** - * Output only. The percentage increase in throttled requests for the - * bucket. - * - * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $percentage_increase = 0.0; - protected $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $bucket - * Output only. The name of the bucket. - * @type int|string $throttled_requests - * Output only. The count of throttled requests for the bucket. - * @type float $percentage_increase - * Output only. The percentage increase in throttled requests for the - * bucket. - * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution\Contribution $contribution - * Output only. The details about the contribution of the bucket. - * @type \Google\Rpc\Status $error - * Output only. The error related to accessing the details about the - * contribution of the bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the bucket. - * - * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getBucket() - { - return $this->bucket; - } - - /** - * Output only. The name of the bucket. - * - * Generated from protobuf field string bucket = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBucket($var) - { - GPBUtil::checkString($var, True); - $this->bucket = $var; - - return $this; - } - - /** - * Output only. The count of throttled requests for the bucket. - * - * Generated from protobuf field int64 throttled_requests = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getThrottledRequests() - { - return $this->throttled_requests; - } - - /** - * Output only. The count of throttled requests for the bucket. - * - * Generated from protobuf field int64 throttled_requests = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setThrottledRequests($var) - { - GPBUtil::checkInt64($var); - $this->throttled_requests = $var; - - return $this; - } - - /** - * Output only. The percentage increase in throttled requests for the - * bucket. - * - * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getPercentageIncrease() - { - return $this->percentage_increase; - } - - /** - * Output only. The percentage increase in throttled requests for the - * bucket. - * - * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setPercentageIncrease($var) - { - GPBUtil::checkDouble($var); - $this->percentage_increase = $var; - - return $this; - } - - /** - * Output only. The details about the contribution of the bucket. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution contribution = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution\Contribution|null - */ - public function getContribution() - { - return $this->readOneof(4); - } - - public function hasContribution() - { - return $this->hasOneof(4); - } - - /** - * Output only. The details about the contribution of the bucket. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution contribution = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution\Contribution $var - * @return $this - */ - public function setContribution($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution\Contribution::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output only. The error related to accessing the details about the - * contribution of the bucket. - * - * Generated from protobuf field .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Rpc\Status|null - */ - public function getError() - { - return $this->readOneof(5); - } - - public function hasError() - { - return $this->hasOneof(5); - } - - /** - * Output only. The error related to accessing the details about the - * contribution of the bucket. - * - * Generated from protobuf field .google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getDetails() - { - return $this->whichOneof("details"); - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution/Contribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution/Contribution.php deleted file mode 100644 index bcc955077a85..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution/Contribution.php +++ /dev/null @@ -1,72 +0,0 @@ -google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution - */ -class Contribution extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. A list of top object prefixes driving the increase in - * throttled requests. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution.PrefixContribution top_prefixes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $top_prefixes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution\Contribution\PrefixContribution[] $top_prefixes - * Output only. A list of top object prefixes driving the increase in - * throttled requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. A list of top object prefixes driving the increase in - * throttled requests. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution.PrefixContribution top_prefixes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution\Contribution\PrefixContribution> - */ - public function getTopPrefixes() - { - return $this->top_prefixes; - } - - /** - * Output only. A list of top object prefixes driving the increase in - * throttled requests. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution.PrefixContribution top_prefixes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution\Contribution\PrefixContribution[] $var - * @return $this - */ - public function setTopPrefixes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\IntelligenceFinding\ThrottledRequestSpike\BucketContribution\Contribution\PrefixContribution::class); - $this->top_prefixes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution/Contribution/PrefixContribution.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution/Contribution/PrefixContribution.php deleted file mode 100644 index ca9457f418c1..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFinding/ThrottledRequestSpike/BucketContribution/Contribution/PrefixContribution.php +++ /dev/null @@ -1,143 +0,0 @@ -google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution.PrefixContribution - */ -class PrefixContribution extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The object prefix. - * Format: `a/b/c`, 'a/b/d', etc. - * - * Generated from protobuf field string prefix = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $prefix = ''; - /** - * Output only. The count of throttled requests for the object prefix. - * - * Generated from protobuf field int64 throttled_requests = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $throttled_requests = 0; - /** - * Output only. The percentage increase in throttled requests for the - * object prefix. - * - * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $percentage_increase = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $prefix - * Output only. The object prefix. - * Format: `a/b/c`, 'a/b/d', etc. - * @type int|string $throttled_requests - * Output only. The count of throttled requests for the object prefix. - * @type float $percentage_increase - * Output only. The percentage increase in throttled requests for the - * object prefix. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The object prefix. - * Format: `a/b/c`, 'a/b/d', etc. - * - * Generated from protobuf field string prefix = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPrefix() - { - return $this->prefix; - } - - /** - * Output only. The object prefix. - * Format: `a/b/c`, 'a/b/d', etc. - * - * Generated from protobuf field string prefix = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPrefix($var) - { - GPBUtil::checkString($var, True); - $this->prefix = $var; - - return $this; - } - - /** - * Output only. The count of throttled requests for the object prefix. - * - * Generated from protobuf field int64 throttled_requests = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getThrottledRequests() - { - return $this->throttled_requests; - } - - /** - * Output only. The count of throttled requests for the object prefix. - * - * Generated from protobuf field int64 throttled_requests = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setThrottledRequests($var) - { - GPBUtil::checkInt64($var); - $this->throttled_requests = $var; - - return $this; - } - - /** - * Output only. The percentage increase in throttled requests for the - * object prefix. - * - * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getPercentageIncrease() - { - return $this->percentage_increase; - } - - /** - * Output only. The percentage increase in throttled requests for the - * object prefix. - * - * Generated from protobuf field double percentage_increase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setPercentageIncrease($var) - { - GPBUtil::checkDouble($var); - $this->percentage_increase = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFindingRevision.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFindingRevision.php deleted file mode 100644 index 795743e540e2..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/IntelligenceFindingRevision.php +++ /dev/null @@ -1,172 +0,0 @@ -google.storage.control.v2.IntelligenceFindingRevision - */ -class IntelligenceFindingRevision extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name of `IntelligenceFindingRevision`. - * Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. The snapshot of the `IntelligenceFinding` at the time the - * revision was created. This field contains the full finding details as they - * existed for the revision. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $snapshot = null; - /** - * Output only. The timestamp when the revision was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The resource name of `IntelligenceFindingRevision`. - * Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` - * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding $snapshot - * Output only. The snapshot of the `IntelligenceFinding` at the time the - * revision was created. This field contains the full finding details as they - * existed for the revision. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The timestamp when the revision was created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name of `IntelligenceFindingRevision`. - * Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The resource name of `IntelligenceFindingRevision`. - * Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The snapshot of the `IntelligenceFinding` at the time the - * revision was created. This field contains the full finding details as they - * existed for the revision. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Storage\Control\V2\IntelligenceFinding|null - */ - public function getSnapshot() - { - return $this->snapshot; - } - - public function hasSnapshot() - { - return isset($this->snapshot); - } - - public function clearSnapshot() - { - unset($this->snapshot); - } - - /** - * Output only. The snapshot of the `IntelligenceFinding` at the time the - * revision was created. This field contains the full finding details as they - * existed for the revision. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceFinding snapshot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding $var - * @return $this - */ - public function setSnapshot($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceFinding::class); - $this->snapshot = $var; - - return $this; - } - - /** - * Output only. The timestamp when the revision was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The timestamp when the revision was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListAnywhereCachesRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListAnywhereCachesRequest.php deleted file mode 100644 index f7edaa73eaff..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListAnywhereCachesRequest.php +++ /dev/null @@ -1,195 +0,0 @@ -google.storage.control.v2.ListAnywhereCachesRequest - */ -class ListAnywhereCachesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The bucket to which this cache belongs. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Maximum number of caches to return in a single response. - * The service will use this parameter or 1,000 items, whichever is smaller. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A previously-returned page token representing part of the larger set of - * results to view. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The bucket to which this cache belongs. Please see - * {@see StorageControlClient::bucketName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\ListAnywhereCachesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The bucket to which this cache belongs. - * @type int $page_size - * Maximum number of caches to return in a single response. - * The service will use this parameter or 1,000 items, whichever is smaller. - * @type string $page_token - * A previously-returned page token representing part of the larger set of - * results to view. - * @type string $request_id - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The bucket to which this cache belongs. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The bucket to which this cache belongs. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Maximum number of caches to return in a single response. - * The service will use this parameter or 1,000 items, whichever is smaller. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of caches to return in a single response. - * The service will use this parameter or 1,000 items, whichever is smaller. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A previously-returned page token representing part of the larger set of - * results to view. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A previously-returned page token representing part of the larger set of - * results to view. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListAnywhereCachesResponse.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListAnywhereCachesResponse.php deleted file mode 100644 index 0b2b0f3a6fbe..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListAnywhereCachesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.storage.control.v2.ListAnywhereCachesResponse - */ -class ListAnywhereCachesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of items. - * - * Generated from protobuf field repeated .google.storage.control.v2.AnywhereCache anywhere_caches = 1; - */ - private $anywhere_caches; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Storage\Control\V2\AnywhereCache[] $anywhere_caches - * The list of items. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * The list of items. - * - * Generated from protobuf field repeated .google.storage.control.v2.AnywhereCache anywhere_caches = 1; - * @return RepeatedField<\Google\Cloud\Storage\Control\V2\AnywhereCache> - */ - public function getAnywhereCaches() - { - return $this->anywhere_caches; - } - - /** - * The list of items. - * - * Generated from protobuf field repeated .google.storage.control.v2.AnywhereCache anywhere_caches = 1; - * @param \Google\Cloud\Storage\Control\V2\AnywhereCache[] $var - * @return $this - */ - public function setAnywhereCaches($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\AnywhereCache::class); - $this->anywhere_caches = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListFoldersRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListFoldersRequest.php deleted file mode 100644 index 4194e6c35a46..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListFoldersRequest.php +++ /dev/null @@ -1,373 +0,0 @@ -google.storage.control.v2.ListFoldersRequest - */ -class ListFoldersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the bucket in which to look for folders. The bucket must - * be a hierarchical namespace enabled bucket. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of folders to return in a single response. The - * service will use this parameter or 1,000 items, whichever is smaller. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A previously-returned page token representing part of the larger - * set of results to view. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filter results to folders whose names begin with this prefix. - * If set, the value must either be an empty string or end with a '/'. - * - * Generated from protobuf field string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $prefix = ''; - /** - * Optional. If set, returns results in a directory-like mode. The results - * will only include folders that either exactly match the above prefix, or - * are one level below the prefix. The only supported value is '/'. - * - * Generated from protobuf field string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $delimiter = ''; - /** - * Optional. Filter results to folders whose names are lexicographically equal - * to or after lexicographic_start. If lexicographic_end is also set, the - * folders listed have names between lexicographic_start (inclusive) and - * lexicographic_end (exclusive). - * - * Generated from protobuf field string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $lexicographic_start = ''; - /** - * Optional. Filter results to folders whose names are lexicographically - * before lexicographic_end. If lexicographic_start is also set, the folders - * listed have names between lexicographic_start (inclusive) and - * lexicographic_end (exclusive). - * - * Generated from protobuf field string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $lexicographic_end = ''; - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $parent Required. Name of the bucket in which to look for folders. The bucket must - * be a hierarchical namespace enabled bucket. Please see - * {@see StorageControlClient::bucketName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\ListFoldersRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Name of the bucket in which to look for folders. The bucket must - * be a hierarchical namespace enabled bucket. - * @type int $page_size - * Optional. Maximum number of folders to return in a single response. The - * service will use this parameter or 1,000 items, whichever is smaller. - * @type string $page_token - * Optional. A previously-returned page token representing part of the larger - * set of results to view. - * @type string $prefix - * Optional. Filter results to folders whose names begin with this prefix. - * If set, the value must either be an empty string or end with a '/'. - * @type string $delimiter - * Optional. If set, returns results in a directory-like mode. The results - * will only include folders that either exactly match the above prefix, or - * are one level below the prefix. The only supported value is '/'. - * @type string $lexicographic_start - * Optional. Filter results to folders whose names are lexicographically equal - * to or after lexicographic_start. If lexicographic_end is also set, the - * folders listed have names between lexicographic_start (inclusive) and - * lexicographic_end (exclusive). - * @type string $lexicographic_end - * Optional. Filter results to folders whose names are lexicographically - * before lexicographic_end. If lexicographic_start is also set, the folders - * listed have names between lexicographic_start (inclusive) and - * lexicographic_end (exclusive). - * @type string $request_id - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the bucket in which to look for folders. The bucket must - * be a hierarchical namespace enabled bucket. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Name of the bucket in which to look for folders. The bucket must - * be a hierarchical namespace enabled bucket. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. Maximum number of folders to return in a single response. The - * service will use this parameter or 1,000 items, whichever is smaller. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of folders to return in a single response. The - * service will use this parameter or 1,000 items, whichever is smaller. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A previously-returned page token representing part of the larger - * set of results to view. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A previously-returned page token representing part of the larger - * set of results to view. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filter results to folders whose names begin with this prefix. - * If set, the value must either be an empty string or end with a '/'. - * - * Generated from protobuf field string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPrefix() - { - return $this->prefix; - } - - /** - * Optional. Filter results to folders whose names begin with this prefix. - * If set, the value must either be an empty string or end with a '/'. - * - * Generated from protobuf field string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPrefix($var) - { - GPBUtil::checkString($var, True); - $this->prefix = $var; - - return $this; - } - - /** - * Optional. If set, returns results in a directory-like mode. The results - * will only include folders that either exactly match the above prefix, or - * are one level below the prefix. The only supported value is '/'. - * - * Generated from protobuf field string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDelimiter() - { - return $this->delimiter; - } - - /** - * Optional. If set, returns results in a directory-like mode. The results - * will only include folders that either exactly match the above prefix, or - * are one level below the prefix. The only supported value is '/'. - * - * Generated from protobuf field string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDelimiter($var) - { - GPBUtil::checkString($var, True); - $this->delimiter = $var; - - return $this; - } - - /** - * Optional. Filter results to folders whose names are lexicographically equal - * to or after lexicographic_start. If lexicographic_end is also set, the - * folders listed have names between lexicographic_start (inclusive) and - * lexicographic_end (exclusive). - * - * Generated from protobuf field string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getLexicographicStart() - { - return $this->lexicographic_start; - } - - /** - * Optional. Filter results to folders whose names are lexicographically equal - * to or after lexicographic_start. If lexicographic_end is also set, the - * folders listed have names between lexicographic_start (inclusive) and - * lexicographic_end (exclusive). - * - * Generated from protobuf field string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setLexicographicStart($var) - { - GPBUtil::checkString($var, True); - $this->lexicographic_start = $var; - - return $this; - } - - /** - * Optional. Filter results to folders whose names are lexicographically - * before lexicographic_end. If lexicographic_start is also set, the folders - * listed have names between lexicographic_start (inclusive) and - * lexicographic_end (exclusive). - * - * Generated from protobuf field string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getLexicographicEnd() - { - return $this->lexicographic_end; - } - - /** - * Optional. Filter results to folders whose names are lexicographically - * before lexicographic_end. If lexicographic_start is also set, the folders - * listed have names between lexicographic_start (inclusive) and - * lexicographic_end (exclusive). - * - * Generated from protobuf field string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setLexicographicEnd($var) - { - GPBUtil::checkString($var, True); - $this->lexicographic_end = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListFoldersResponse.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListFoldersResponse.php deleted file mode 100644 index cd0c0cdd657c..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListFoldersResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.storage.control.v2.ListFoldersResponse - */ -class ListFoldersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of child folders - * - * Generated from protobuf field repeated .google.storage.control.v2.Folder folders = 1; - */ - private $folders; - /** - * The continuation token, used to page through large result sets. Provide - * this value in a subsequent request to return the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Storage\Control\V2\Folder[] $folders - * The list of child folders - * @type string $next_page_token - * The continuation token, used to page through large result sets. Provide - * this value in a subsequent request to return the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * The list of child folders - * - * Generated from protobuf field repeated .google.storage.control.v2.Folder folders = 1; - * @return RepeatedField<\Google\Cloud\Storage\Control\V2\Folder> - */ - public function getFolders() - { - return $this->folders; - } - - /** - * The list of child folders - * - * Generated from protobuf field repeated .google.storage.control.v2.Folder folders = 1; - * @param \Google\Cloud\Storage\Control\V2\Folder[] $var - * @return $this - */ - public function setFolders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\Folder::class); - $this->folders = $arr; - - return $this; - } - - /** - * The continuation token, used to page through large result sets. Provide - * this value in a subsequent request to return the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The continuation token, used to page through large result sets. Provide - * this value in a subsequent request to return the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingRevisionsRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingRevisionsRequest.php deleted file mode 100644 index 46d060ee666c..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingRevisionsRequest.php +++ /dev/null @@ -1,181 +0,0 @@ -google.storage.control.v2.ListIntelligenceFindingRevisionsRequest - */ -class ListIntelligenceFindingRevisionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent of the `IntelligenceFindingRevision` resource. - * ## Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `IntelligenceFindingRevision` resources to - * return. - * The maximum value is `100`; values above `100` will be coerced to `100`. - * The default value is `100`. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `ListIntelligenceFindingRevisions` call. Provide this to retrieve the - * subsequent page. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent of the `IntelligenceFindingRevision` resource. - * ## Format: - * - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` - * Please see {@see StorageControlClient::intelligenceFindingName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\ListIntelligenceFindingRevisionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent of the `IntelligenceFindingRevision` resource. - * ## Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` - * @type int $page_size - * Optional. The maximum number of `IntelligenceFindingRevision` resources to - * return. - * The maximum value is `100`; values above `100` will be coerced to `100`. - * The default value is `100`. - * @type string $page_token - * Optional. A page token, received from a previous - * `ListIntelligenceFindingRevisions` call. Provide this to retrieve the - * subsequent page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent of the `IntelligenceFindingRevision` resource. - * ## Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent of the `IntelligenceFindingRevision` resource. - * ## Format: - * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `IntelligenceFindingRevision` resources to - * return. - * The maximum value is `100`; values above `100` will be coerced to `100`. - * The default value is `100`. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `IntelligenceFindingRevision` resources to - * return. - * The maximum value is `100`; values above `100` will be coerced to `100`. - * The default value is `100`. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `ListIntelligenceFindingRevisions` call. Provide this to retrieve the - * subsequent page. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `ListIntelligenceFindingRevisions` call. Provide this to retrieve the - * subsequent page. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingRevisionsResponse.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingRevisionsResponse.php deleted file mode 100644 index a4405f4afe74..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingRevisionsResponse.php +++ /dev/null @@ -1,102 +0,0 @@ -google.storage.control.v2.ListIntelligenceFindingRevisionsResponse - */ -class ListIntelligenceFindingRevisionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `IntelligenceFindingRevision` resources from the specified project. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFindingRevision intelligence_finding_revisions = 1; - */ - private $intelligence_finding_revisions; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Storage\Control\V2\IntelligenceFindingRevision[] $intelligence_finding_revisions - * The `IntelligenceFindingRevision` resources from the specified project. - * @type string $next_page_token - * A token that can be sent as `page_token` to retrieve the next page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * The `IntelligenceFindingRevision` resources from the specified project. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFindingRevision intelligence_finding_revisions = 1; - * @return RepeatedField<\Google\Cloud\Storage\Control\V2\IntelligenceFindingRevision> - */ - public function getIntelligenceFindingRevisions() - { - return $this->intelligence_finding_revisions; - } - - /** - * The `IntelligenceFindingRevision` resources from the specified project. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFindingRevision intelligence_finding_revisions = 1; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceFindingRevision[] $var - * @return $this - */ - public function setIntelligenceFindingRevisions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\IntelligenceFindingRevision::class); - $this->intelligence_finding_revisions = $arr; - - return $this; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingsRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingsRequest.php deleted file mode 100644 index 09e43da2db45..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingsRequest.php +++ /dev/null @@ -1,218 +0,0 @@ -google.storage.control.v2.ListIntelligenceFindingsRequest - */ -class ListIntelligenceFindingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent of the `IntelligenceFinding` resource. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The filter expression to be applied. - * Supports filtering by `type` and `associated_resources`. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The maximum number of `IntelligenceFinding` resources to return. - * The maximum value is `100`; values above `100` will be coerced to `100`. - * The default value is `100`. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListIntelligenceFindings` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListIntelligenceFindings` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent of the `IntelligenceFinding` resource. - * - * Format: `projects/{project}/locations/{location}` - * Please see {@see StorageControlClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\ListIntelligenceFindingsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent of the `IntelligenceFinding` resource. - * Format: `projects/{project}/locations/{location}` - * @type string $filter - * Optional. The filter expression to be applied. - * Supports filtering by `type` and `associated_resources`. - * @type int $page_size - * Optional. The maximum number of `IntelligenceFinding` resources to return. - * The maximum value is `100`; values above `100` will be coerced to `100`. - * The default value is `100`. - * @type string $page_token - * Optional. A page token, received from a previous `ListIntelligenceFindings` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListIntelligenceFindings` must match the call that provided the page - * token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent of the `IntelligenceFinding` resource. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent of the `IntelligenceFinding` resource. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The filter expression to be applied. - * Supports filtering by `type` and `associated_resources`. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter expression to be applied. - * Supports filtering by `type` and `associated_resources`. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. The maximum number of `IntelligenceFinding` resources to return. - * The maximum value is `100`; values above `100` will be coerced to `100`. - * The default value is `100`. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `IntelligenceFinding` resources to return. - * The maximum value is `100`; values above `100` will be coerced to `100`. - * The default value is `100`. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListIntelligenceFindings` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListIntelligenceFindings` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListIntelligenceFindings` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListIntelligenceFindings` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingsResponse.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingsResponse.php deleted file mode 100644 index b429795edbc4..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListIntelligenceFindingsResponse.php +++ /dev/null @@ -1,106 +0,0 @@ -google.storage.control.v2.ListIntelligenceFindingsResponse - */ -class ListIntelligenceFindingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `IntelligenceFinding` resources from the specified project. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding intelligence_findings = 1; - */ - private $intelligence_findings; - /** - * A token to retrieve the next page of results. - * Pass this value in the `page_token` field in the subsequent call. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Storage\Control\V2\IntelligenceFinding[] $intelligence_findings - * The `IntelligenceFinding` resources from the specified project. - * @type string $next_page_token - * A token to retrieve the next page of results. - * Pass this value in the `page_token` field in the subsequent call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * The `IntelligenceFinding` resources from the specified project. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding intelligence_findings = 1; - * @return RepeatedField<\Google\Cloud\Storage\Control\V2\IntelligenceFinding> - */ - public function getIntelligenceFindings() - { - return $this->intelligence_findings; - } - - /** - * The `IntelligenceFinding` resources from the specified project. - * - * Generated from protobuf field repeated .google.storage.control.v2.IntelligenceFinding intelligence_findings = 1; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceFinding[] $var - * @return $this - */ - public function setIntelligenceFindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\IntelligenceFinding::class); - $this->intelligence_findings = $arr; - - return $this; - } - - /** - * A token to retrieve the next page of results. - * Pass this value in the `page_token` field in the subsequent call. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token to retrieve the next page of results. - * Pass this value in the `page_token` field in the subsequent call. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListManagedFoldersRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListManagedFoldersRequest.php deleted file mode 100644 index 3c7bbc4711a5..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListManagedFoldersRequest.php +++ /dev/null @@ -1,233 +0,0 @@ -google.storage.control.v2.ListManagedFoldersRequest - */ -class ListManagedFoldersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the bucket this managed folder belongs to. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of managed folders to return in a single response. - * The service will use this parameter or 1,000 items, whichever is smaller. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A previously-returned page token representing part of the larger - * set of results to view. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filter results to match managed folders with name starting with - * this prefix. - * - * Generated from protobuf field string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $prefix = ''; - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $parent Required. Name of the bucket this managed folder belongs to. Please see - * {@see StorageControlClient::bucketName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\ListManagedFoldersRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Name of the bucket this managed folder belongs to. - * @type int $page_size - * Optional. Maximum number of managed folders to return in a single response. - * The service will use this parameter or 1,000 items, whichever is smaller. - * @type string $page_token - * Optional. A previously-returned page token representing part of the larger - * set of results to view. - * @type string $prefix - * Optional. Filter results to match managed folders with name starting with - * this prefix. - * @type string $request_id - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the bucket this managed folder belongs to. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Name of the bucket this managed folder belongs to. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. Maximum number of managed folders to return in a single response. - * The service will use this parameter or 1,000 items, whichever is smaller. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of managed folders to return in a single response. - * The service will use this parameter or 1,000 items, whichever is smaller. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A previously-returned page token representing part of the larger - * set of results to view. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A previously-returned page token representing part of the larger - * set of results to view. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filter results to match managed folders with name starting with - * this prefix. - * - * Generated from protobuf field string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPrefix() - { - return $this->prefix; - } - - /** - * Optional. Filter results to match managed folders with name starting with - * this prefix. - * - * Generated from protobuf field string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPrefix($var) - { - GPBUtil::checkString($var, True); - $this->prefix = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListManagedFoldersResponse.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListManagedFoldersResponse.php deleted file mode 100644 index 8675ad505ac8..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ListManagedFoldersResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.storage.control.v2.ListManagedFoldersResponse - */ -class ListManagedFoldersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of matching managed folders - * - * Generated from protobuf field repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; - */ - private $managed_folders; - /** - * The continuation token, used to page through large result sets. Provide - * this value in a subsequent request to return the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Storage\Control\V2\ManagedFolder[] $managed_folders - * The list of matching managed folders - * @type string $next_page_token - * The continuation token, used to page through large result sets. Provide - * this value in a subsequent request to return the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * The list of matching managed folders - * - * Generated from protobuf field repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; - * @return RepeatedField<\Google\Cloud\Storage\Control\V2\ManagedFolder> - */ - public function getManagedFolders() - { - return $this->managed_folders; - } - - /** - * The list of matching managed folders - * - * Generated from protobuf field repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; - * @param \Google\Cloud\Storage\Control\V2\ManagedFolder[] $var - * @return $this - */ - public function setManagedFolders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\ManagedFolder::class); - $this->managed_folders = $arr; - - return $this; - } - - /** - * The continuation token, used to page through large result sets. Provide - * this value in a subsequent request to return the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The continuation token, used to page through large result sets. Provide - * this value in a subsequent request to return the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder.php deleted file mode 100644 index 10c34532376d..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ManagedFolder.php +++ /dev/null @@ -1,249 +0,0 @@ -google.storage.control.v2.ManagedFolder - */ -class ManagedFolder extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of this managed folder. - * Format: - * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The metadata version of this managed folder. It increases - * whenever the metadata is updated. Used for preconditions and for detecting - * changes in metadata. Managed folders don't have a generation number. - * - * Generated from protobuf field int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $metageneration = 0; - /** - * Output only. The creation time of the managed folder. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The modification time of the managed folder. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Rapid Cache configuration for a managed prefix. - * - * Generated from protobuf field optional .google.storage.control.v2.ManagedFolder.RapidCacheConfig rapid_cache_config = 6; - */ - protected $rapid_cache_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The name of this managed folder. - * Format: - * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` - * @type int|string $metageneration - * Output only. The metadata version of this managed folder. It increases - * whenever the metadata is updated. Used for preconditions and for detecting - * changes in metadata. Managed folders don't have a generation number. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation time of the managed folder. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The modification time of the managed folder. - * @type \Google\Cloud\Storage\Control\V2\ManagedFolder\RapidCacheConfig $rapid_cache_config - * Rapid Cache configuration for a managed prefix. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name of this managed folder. - * Format: - * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of this managed folder. - * Format: - * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The metadata version of this managed folder. It increases - * whenever the metadata is updated. Used for preconditions and for detecting - * changes in metadata. Managed folders don't have a generation number. - * - * Generated from protobuf field int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getMetageneration() - { - return $this->metageneration; - } - - /** - * Output only. The metadata version of this managed folder. It increases - * whenever the metadata is updated. Used for preconditions and for detecting - * changes in metadata. Managed folders don't have a generation number. - * - * Generated from protobuf field int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setMetageneration($var) - { - GPBUtil::checkInt64($var); - $this->metageneration = $var; - - return $this; - } - - /** - * Output only. The creation time of the managed folder. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The creation time of the managed folder. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The modification time of the managed folder. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The modification time of the managed folder. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Rapid Cache configuration for a managed prefix. - * - * Generated from protobuf field optional .google.storage.control.v2.ManagedFolder.RapidCacheConfig rapid_cache_config = 6; - * @return \Google\Cloud\Storage\Control\V2\ManagedFolder\RapidCacheConfig|null - */ - public function getRapidCacheConfig() - { - return $this->rapid_cache_config; - } - - public function hasRapidCacheConfig() - { - return isset($this->rapid_cache_config); - } - - public function clearRapidCacheConfig() - { - unset($this->rapid_cache_config); - } - - /** - * Rapid Cache configuration for a managed prefix. - * - * Generated from protobuf field optional .google.storage.control.v2.ManagedFolder.RapidCacheConfig rapid_cache_config = 6; - * @param \Google\Cloud\Storage\Control\V2\ManagedFolder\RapidCacheConfig $var - * @return $this - */ - public function setRapidCacheConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\ManagedFolder\RapidCacheConfig::class); - $this->rapid_cache_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/PauseAnywhereCacheRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/PauseAnywhereCacheRequest.php deleted file mode 100644 index 8b7cbbad29f3..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/PauseAnywhereCacheRequest.php +++ /dev/null @@ -1,128 +0,0 @@ -google.storage.control.v2.PauseAnywhereCacheRequest - */ -class PauseAnywhereCacheRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $name Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * Please see {@see StorageControlClient::anywhereCacheName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\PauseAnywhereCacheRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * @type string $request_id - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/PendingRenameInfo.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/PendingRenameInfo.php deleted file mode 100644 index 23a23f19fd91..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/PendingRenameInfo.php +++ /dev/null @@ -1,67 +0,0 @@ -google.storage.control.v2.PendingRenameInfo - */ -class PendingRenameInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the rename operation. - * - * Generated from protobuf field string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $operation = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $operation - * Output only. The name of the rename operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the rename operation. - * - * Generated from protobuf field string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getOperation() - { - return $this->operation; - } - - /** - * Output only. The name of the rename operation. - * - * Generated from protobuf field string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkString($var, True); - $this->operation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RenameFolderMetadata.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RenameFolderMetadata.php deleted file mode 100644 index 487fceba5e40..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RenameFolderMetadata.php +++ /dev/null @@ -1,146 +0,0 @@ -google.storage.control.v2.RenameFolderMetadata - */ -class RenameFolderMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Generic metadata for the long running operation. - * - * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - */ - protected $common_metadata = null; - /** - * The path of the source folder. - * - * Generated from protobuf field string source_folder_id = 2; - */ - protected $source_folder_id = ''; - /** - * The path of the destination folder. - * - * Generated from protobuf field string destination_folder_id = 3; - */ - protected $destination_folder_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $common_metadata - * Generic metadata for the long running operation. - * @type string $source_folder_id - * The path of the source folder. - * @type string $destination_folder_id - * The path of the destination folder. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Generic metadata for the long running operation. - * - * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * @return \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata|null - */ - public function getCommonMetadata() - { - return $this->common_metadata; - } - - public function hasCommonMetadata() - { - return isset($this->common_metadata); - } - - public function clearCommonMetadata() - { - unset($this->common_metadata); - } - - /** - * Generic metadata for the long running operation. - * - * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * @param \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $var - * @return $this - */ - public function setCommonMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata::class); - $this->common_metadata = $var; - - return $this; - } - - /** - * The path of the source folder. - * - * Generated from protobuf field string source_folder_id = 2; - * @return string - */ - public function getSourceFolderId() - { - return $this->source_folder_id; - } - - /** - * The path of the source folder. - * - * Generated from protobuf field string source_folder_id = 2; - * @param string $var - * @return $this - */ - public function setSourceFolderId($var) - { - GPBUtil::checkString($var, True); - $this->source_folder_id = $var; - - return $this; - } - - /** - * The path of the destination folder. - * - * Generated from protobuf field string destination_folder_id = 3; - * @return string - */ - public function getDestinationFolderId() - { - return $this->destination_folder_id; - } - - /** - * The path of the destination folder. - * - * Generated from protobuf field string destination_folder_id = 3; - * @param string $var - * @return $this - */ - public function setDestinationFolderId($var) - { - GPBUtil::checkString($var, True); - $this->destination_folder_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RenameFolderRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RenameFolderRequest.php deleted file mode 100644 index d73628a46402..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/RenameFolderRequest.php +++ /dev/null @@ -1,261 +0,0 @@ -google.storage.control.v2.RenameFolderRequest - */ -class RenameFolderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the source folder being renamed. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * - * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The destination folder ID, e.g. `foo/bar/`. - * - * Generated from protobuf field string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $destination_folder_id = ''; - /** - * Makes the operation only succeed conditional on whether the source - * folder's current metageneration matches the given value. - * - * Generated from protobuf field optional int64 if_metageneration_match = 4; - */ - protected $if_metageneration_match = null; - /** - * Makes the operation only succeed conditional on whether the source - * folder's current metageneration does not match the given value. - * - * Generated from protobuf field optional int64 if_metageneration_not_match = 5; - */ - protected $if_metageneration_not_match = null; - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * - * Generated from protobuf field string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $name Required. Name of the source folder being renamed. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * Please see {@see StorageControlClient::folderName()} for help formatting this field. - * @param string $destinationFolderId Required. The destination folder ID, e.g. `foo/bar/`. - * - * @return \Google\Cloud\Storage\Control\V2\RenameFolderRequest - * - * @experimental - */ - public static function build(string $name, string $destinationFolderId): self - { - return (new self()) - ->setName($name) - ->setDestinationFolderId($destinationFolderId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the source folder being renamed. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * @type string $destination_folder_id - * Required. The destination folder ID, e.g. `foo/bar/`. - * @type int|string $if_metageneration_match - * Makes the operation only succeed conditional on whether the source - * folder's current metageneration matches the given value. - * @type int|string $if_metageneration_not_match - * Makes the operation only succeed conditional on whether the source - * folder's current metageneration does not match the given value. - * @type string $request_id - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the source folder being renamed. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * - * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the source folder being renamed. - * Format: `projects/{project}/buckets/{bucket}/folders/{folder}` - * - * Generated from protobuf field string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The destination folder ID, e.g. `foo/bar/`. - * - * Generated from protobuf field string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDestinationFolderId() - { - return $this->destination_folder_id; - } - - /** - * Required. The destination folder ID, e.g. `foo/bar/`. - * - * Generated from protobuf field string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDestinationFolderId($var) - { - GPBUtil::checkString($var, True); - $this->destination_folder_id = $var; - - return $this; - } - - /** - * Makes the operation only succeed conditional on whether the source - * folder's current metageneration matches the given value. - * - * Generated from protobuf field optional int64 if_metageneration_match = 4; - * @return int|string - */ - public function getIfMetagenerationMatch() - { - return isset($this->if_metageneration_match) ? $this->if_metageneration_match : 0; - } - - public function hasIfMetagenerationMatch() - { - return isset($this->if_metageneration_match); - } - - public function clearIfMetagenerationMatch() - { - unset($this->if_metageneration_match); - } - - /** - * Makes the operation only succeed conditional on whether the source - * folder's current metageneration matches the given value. - * - * Generated from protobuf field optional int64 if_metageneration_match = 4; - * @param int|string $var - * @return $this - */ - public function setIfMetagenerationMatch($var) - { - GPBUtil::checkInt64($var); - $this->if_metageneration_match = $var; - - return $this; - } - - /** - * Makes the operation only succeed conditional on whether the source - * folder's current metageneration does not match the given value. - * - * Generated from protobuf field optional int64 if_metageneration_not_match = 5; - * @return int|string - */ - public function getIfMetagenerationNotMatch() - { - return isset($this->if_metageneration_not_match) ? $this->if_metageneration_not_match : 0; - } - - public function hasIfMetagenerationNotMatch() - { - return isset($this->if_metageneration_not_match); - } - - public function clearIfMetagenerationNotMatch() - { - unset($this->if_metageneration_not_match); - } - - /** - * Makes the operation only succeed conditional on whether the source - * folder's current metageneration does not match the given value. - * - * Generated from protobuf field optional int64 if_metageneration_not_match = 5; - * @param int|string $var - * @return $this - */ - public function setIfMetagenerationNotMatch($var) - { - GPBUtil::checkInt64($var); - $this->if_metageneration_not_match = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * - * Generated from protobuf field string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * - * Generated from protobuf field string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ResumeAnywhereCacheRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ResumeAnywhereCacheRequest.php deleted file mode 100644 index 31d52462da42..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/ResumeAnywhereCacheRequest.php +++ /dev/null @@ -1,128 +0,0 @@ -google.storage.control.v2.ResumeAnywhereCacheRequest - */ -class ResumeAnywhereCacheRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $name Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * Please see {@see StorageControlClient::anywhereCacheName()} for help formatting this field. - * - * @return \Google\Cloud\Storage\Control\V2\ResumeAnywhereCacheRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * @type string $request_id - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name field in the request should be: - * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout.php deleted file mode 100644 index a09508eb6371..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout.php +++ /dev/null @@ -1,239 +0,0 @@ -google.storage.control.v2.StorageLayout - */ -class StorageLayout extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the StorageLayout resource. - * Format: `projects/{project}/buckets/{bucket}/storageLayout` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. The location of the bucket. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $location = ''; - /** - * Output only. The location type of the bucket (region, dual-region, - * multi-region, etc). - * - * Generated from protobuf field string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $location_type = ''; - /** - * Output only. The data placement configuration for custom dual region. If - * there is no configuration, this is not a custom dual region bucket. - * - * Generated from protobuf field .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $custom_placement_config = null; - /** - * Output only. The bucket's hierarchical namespace configuration. If there is - * no configuration, the hierarchical namespace is disabled. - * - * Generated from protobuf field .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $hierarchical_namespace = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The name of the StorageLayout resource. - * Format: `projects/{project}/buckets/{bucket}/storageLayout` - * @type string $location - * Output only. The location of the bucket. - * @type string $location_type - * Output only. The location type of the bucket (region, dual-region, - * multi-region, etc). - * @type \Google\Cloud\Storage\Control\V2\StorageLayout\CustomPlacementConfig $custom_placement_config - * Output only. The data placement configuration for custom dual region. If - * there is no configuration, this is not a custom dual region bucket. - * @type \Google\Cloud\Storage\Control\V2\StorageLayout\HierarchicalNamespace $hierarchical_namespace - * Output only. The bucket's hierarchical namespace configuration. If there is - * no configuration, the hierarchical namespace is disabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the StorageLayout resource. - * Format: `projects/{project}/buckets/{bucket}/storageLayout` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The name of the StorageLayout resource. - * Format: `projects/{project}/buckets/{bucket}/storageLayout` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The location of the bucket. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Output only. The location of the bucket. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Output only. The location type of the bucket (region, dual-region, - * multi-region, etc). - * - * Generated from protobuf field string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLocationType() - { - return $this->location_type; - } - - /** - * Output only. The location type of the bucket (region, dual-region, - * multi-region, etc). - * - * Generated from protobuf field string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLocationType($var) - { - GPBUtil::checkString($var, True); - $this->location_type = $var; - - return $this; - } - - /** - * Output only. The data placement configuration for custom dual region. If - * there is no configuration, this is not a custom dual region bucket. - * - * Generated from protobuf field .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Storage\Control\V2\StorageLayout\CustomPlacementConfig|null - */ - public function getCustomPlacementConfig() - { - return $this->custom_placement_config; - } - - public function hasCustomPlacementConfig() - { - return isset($this->custom_placement_config); - } - - public function clearCustomPlacementConfig() - { - unset($this->custom_placement_config); - } - - /** - * Output only. The data placement configuration for custom dual region. If - * there is no configuration, this is not a custom dual region bucket. - * - * Generated from protobuf field .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\StorageLayout\CustomPlacementConfig $var - * @return $this - */ - public function setCustomPlacementConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\StorageLayout\CustomPlacementConfig::class); - $this->custom_placement_config = $var; - - return $this; - } - - /** - * Output only. The bucket's hierarchical namespace configuration. If there is - * no configuration, the hierarchical namespace is disabled. - * - * Generated from protobuf field .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Storage\Control\V2\StorageLayout\HierarchicalNamespace|null - */ - public function getHierarchicalNamespace() - { - return $this->hierarchical_namespace; - } - - public function hasHierarchicalNamespace() - { - return isset($this->hierarchical_namespace); - } - - public function clearHierarchicalNamespace() - { - unset($this->hierarchical_namespace); - } - - /** - * Output only. The bucket's hierarchical namespace configuration. If there is - * no configuration, the hierarchical namespace is disabled. - * - * Generated from protobuf field .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Storage\Control\V2\StorageLayout\HierarchicalNamespace $var - * @return $this - */ - public function setHierarchicalNamespace($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\StorageLayout\HierarchicalNamespace::class); - $this->hierarchical_namespace = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout/CustomPlacementConfig.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout/CustomPlacementConfig.php deleted file mode 100644 index 9b9db6ad61c3..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout/CustomPlacementConfig.php +++ /dev/null @@ -1,69 +0,0 @@ -google.storage.control.v2.StorageLayout.CustomPlacementConfig - */ -class CustomPlacementConfig extends \Google\Protobuf\Internal\Message -{ - /** - * List of locations to use for data placement. - * - * Generated from protobuf field repeated string data_locations = 1; - */ - private $data_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $data_locations - * List of locations to use for data placement. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * List of locations to use for data placement. - * - * Generated from protobuf field repeated string data_locations = 1; - * @return RepeatedField - */ - public function getDataLocations() - { - return $this->data_locations; - } - - /** - * List of locations to use for data placement. - * - * Generated from protobuf field repeated string data_locations = 1; - * @param string[] $var - * @return $this - */ - public function setDataLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->data_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout/HierarchicalNamespace.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout/HierarchicalNamespace.php deleted file mode 100644 index 2c5e0e396c6b..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/StorageLayout/HierarchicalNamespace.php +++ /dev/null @@ -1,67 +0,0 @@ -google.storage.control.v2.StorageLayout.HierarchicalNamespace - */ -class HierarchicalNamespace extends \Google\Protobuf\Internal\Message -{ - /** - * Enables the hierarchical namespace feature. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enables the hierarchical namespace feature. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Enables the hierarchical namespace feature. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enables the hierarchical namespace feature. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsRequest.php deleted file mode 100644 index 2035cb2d352d..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsRequest.php +++ /dev/null @@ -1,301 +0,0 @@ -google.storage.control.v2.SummarizeIntelligenceFindingsRequest - */ -class SummarizeIntelligenceFindingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The scope to summarize the findings for. - * Format: - * - `organizations/{organization}/locations/{location}` - * - `folders/{folder}/locations/{location}` - * - `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Optional. Determines the granularity of the findings - * when the `parent` is an organization or folder. - * - `PARENT` (or not set): A single summary is - * returned for each insight type, aggregated across the entire `parent` - * scope. - * - `PROJECT`: A separate summary is returned for each - * insight type for every project within the `parent` scope. - * The only supported values are `PARENT` and `PROJECT`. - * If no value is specified, the API behaviour defaults to the `PARENT`. - * - * Generated from protobuf field .google.storage.control.v2.SummarizeIntelligenceFindingsRequest.ResourceScope resource_scope = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $resource_scope = 0; - /** - * Optional. The filter expression, following AIP-160. - * Supports filtering by FindingType. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The maximum number of findings to return. - * The maximum value is `100`; values above `100` will be coerced to `100`. - * The default value is `100`. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `SummarizeIntelligenceFindings` call. Provide this to retrieve the - * subsequent page. - * When paginating, all other parameters provided to - * `SummarizeIntelligenceFindings` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The scope to summarize the findings for. - * Format: - * - `organizations/{organization}/locations/{location}` - * - `folders/{folder}/locations/{location}` - * - `projects/{project}/locations/{location}` - * - * @return \Google\Cloud\Storage\Control\V2\SummarizeIntelligenceFindingsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The scope to summarize the findings for. - * Format: - * - `organizations/{organization}/locations/{location}` - * - `folders/{folder}/locations/{location}` - * - `projects/{project}/locations/{location}` - * @type int $resource_scope - * Optional. Determines the granularity of the findings - * when the `parent` is an organization or folder. - * - `PARENT` (or not set): A single summary is - * returned for each insight type, aggregated across the entire `parent` - * scope. - * - `PROJECT`: A separate summary is returned for each - * insight type for every project within the `parent` scope. - * The only supported values are `PARENT` and `PROJECT`. - * If no value is specified, the API behaviour defaults to the `PARENT`. - * @type string $filter - * Optional. The filter expression, following AIP-160. - * Supports filtering by FindingType. - * @type int $page_size - * Optional. The maximum number of findings to return. - * The maximum value is `100`; values above `100` will be coerced to `100`. - * The default value is `100`. - * @type string $page_token - * Optional. A page token, received from a previous - * `SummarizeIntelligenceFindings` call. Provide this to retrieve the - * subsequent page. - * When paginating, all other parameters provided to - * `SummarizeIntelligenceFindings` must match the call that provided the page - * token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The scope to summarize the findings for. - * Format: - * - `organizations/{organization}/locations/{location}` - * - `folders/{folder}/locations/{location}` - * - `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The scope to summarize the findings for. - * Format: - * - `organizations/{organization}/locations/{location}` - * - `folders/{folder}/locations/{location}` - * - `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. Determines the granularity of the findings - * when the `parent` is an organization or folder. - * - `PARENT` (or not set): A single summary is - * returned for each insight type, aggregated across the entire `parent` - * scope. - * - `PROJECT`: A separate summary is returned for each - * insight type for every project within the `parent` scope. - * The only supported values are `PARENT` and `PROJECT`. - * If no value is specified, the API behaviour defaults to the `PARENT`. - * - * Generated from protobuf field .google.storage.control.v2.SummarizeIntelligenceFindingsRequest.ResourceScope resource_scope = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getResourceScope() - { - return $this->resource_scope; - } - - /** - * Optional. Determines the granularity of the findings - * when the `parent` is an organization or folder. - * - `PARENT` (or not set): A single summary is - * returned for each insight type, aggregated across the entire `parent` - * scope. - * - `PROJECT`: A separate summary is returned for each - * insight type for every project within the `parent` scope. - * The only supported values are `PARENT` and `PROJECT`. - * If no value is specified, the API behaviour defaults to the `PARENT`. - * - * Generated from protobuf field .google.storage.control.v2.SummarizeIntelligenceFindingsRequest.ResourceScope resource_scope = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setResourceScope($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Storage\Control\V2\SummarizeIntelligenceFindingsRequest\ResourceScope::class); - $this->resource_scope = $var; - - return $this; - } - - /** - * Optional. The filter expression, following AIP-160. - * Supports filtering by FindingType. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter expression, following AIP-160. - * Supports filtering by FindingType. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. The maximum number of findings to return. - * The maximum value is `100`; values above `100` will be coerced to `100`. - * The default value is `100`. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of findings to return. - * The maximum value is `100`; values above `100` will be coerced to `100`. - * The default value is `100`. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `SummarizeIntelligenceFindings` call. Provide this to retrieve the - * subsequent page. - * When paginating, all other parameters provided to - * `SummarizeIntelligenceFindings` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `SummarizeIntelligenceFindings` call. Provide this to retrieve the - * subsequent page. - * When paginating, all other parameters provided to - * `SummarizeIntelligenceFindings` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsRequest/ResourceScope.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsRequest/ResourceScope.php deleted file mode 100644 index e3b93d42af34..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsRequest/ResourceScope.php +++ /dev/null @@ -1,61 +0,0 @@ -google.storage.control.v2.SummarizeIntelligenceFindingsRequest.ResourceScope - */ -class ResourceScope -{ - /** - * The default behavior. Falls back to PARENT behaviour - * - * Generated from protobuf enum RESOURCE_SCOPE_UNSPECIFIED = 0; - */ - const RESOURCE_SCOPE_UNSPECIFIED = 0; - /** - * Summaries are aggregated at the level of the `parent` resource. - * - * Generated from protobuf enum PARENT = 1; - */ - const PARENT = 1; - /** - * Summaries are broken down by each project within the `parent` scope. - * - * Generated from protobuf enum PROJECT = 2; - */ - const PROJECT = 2; - - private static $valueToName = [ - self::RESOURCE_SCOPE_UNSPECIFIED => 'RESOURCE_SCOPE_UNSPECIFIED', - self::PARENT => 'PARENT', - self::PROJECT => 'PROJECT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsResponse.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsResponse.php deleted file mode 100644 index 59e3b2706342..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/SummarizeIntelligenceFindingsResponse.php +++ /dev/null @@ -1,110 +0,0 @@ -google.storage.control.v2.SummarizeIntelligenceFindingsResponse - */ -class SummarizeIntelligenceFindingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of `FindingSummary` summaries. - * - * Generated from protobuf field repeated .google.storage.control.v2.FindingSummary finding_summaries = 1; - */ - private $finding_summaries; - /** - * A token to retrieve the next page of results. - * Pass this value in the `page_token` field in the subsequent call to - * `SummarizeIntelligenceFindings` to retrieve the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Storage\Control\V2\FindingSummary[] $finding_summaries - * The list of `FindingSummary` summaries. - * @type string $next_page_token - * A token to retrieve the next page of results. - * Pass this value in the `page_token` field in the subsequent call to - * `SummarizeIntelligenceFindings` to retrieve the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * The list of `FindingSummary` summaries. - * - * Generated from protobuf field repeated .google.storage.control.v2.FindingSummary finding_summaries = 1; - * @return RepeatedField<\Google\Cloud\Storage\Control\V2\FindingSummary> - */ - public function getFindingSummaries() - { - return $this->finding_summaries; - } - - /** - * The list of `FindingSummary` summaries. - * - * Generated from protobuf field repeated .google.storage.control.v2.FindingSummary finding_summaries = 1; - * @param \Google\Cloud\Storage\Control\V2\FindingSummary[] $var - * @return $this - */ - public function setFindingSummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Storage\Control\V2\FindingSummary::class); - $this->finding_summaries = $arr; - - return $this; - } - - /** - * A token to retrieve the next page of results. - * Pass this value in the `page_token` field in the subsequent call to - * `SummarizeIntelligenceFindings` to retrieve the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token to retrieve the next page of results. - * Pass this value in the `page_token` field in the subsequent call to - * `SummarizeIntelligenceFindings` to retrieve the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateAnywhereCacheMetadata.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateAnywhereCacheMetadata.php deleted file mode 100644 index e34499bdc07d..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateAnywhereCacheMetadata.php +++ /dev/null @@ -1,322 +0,0 @@ -google.storage.control.v2.UpdateAnywhereCacheMetadata - */ -class UpdateAnywhereCacheMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Generic metadata for the long running operation. - * - * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - */ - protected $common_metadata = null; - /** - * Anywhere Cache ID. - * - * Generated from protobuf field optional string anywhere_cache_id = 2; - */ - protected $anywhere_cache_id = null; - /** - * The zone in which the cache instance is running. For example, - * us-central1-a. - * - * Generated from protobuf field optional string zone = 5; - */ - protected $zone = null; - /** - * Anywhere Cache entry's TTL between 1h and 7days. A cache-level config that - * is applied to all new cache entries on admission. If `ttl` is pending - * update, this field equals to the new value specified in the Update request. - * - * Generated from protobuf field optional .google.protobuf.Duration ttl = 3; - */ - protected $ttl = null; - /** - * Optional. Anywhere Cache entry Admission Policy in kebab-case (e.g., - * "admit-on-first-miss"). If `admission_policy` is pending - * update, this field equals to the new value specified in the Update request. - * - * Generated from protobuf field optional string admission_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $admission_policy = null; - /** - * Specifies whether objects are ingested into the cache upon write. If not - * set, it defaults to false. - * - * Generated from protobuf field optional bool ingest_on_write = 6; - */ - protected $ingest_on_write = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $common_metadata - * Generic metadata for the long running operation. - * @type string $anywhere_cache_id - * Anywhere Cache ID. - * @type string $zone - * The zone in which the cache instance is running. For example, - * us-central1-a. - * @type \Google\Protobuf\Duration $ttl - * Anywhere Cache entry's TTL between 1h and 7days. A cache-level config that - * is applied to all new cache entries on admission. If `ttl` is pending - * update, this field equals to the new value specified in the Update request. - * @type string $admission_policy - * Optional. Anywhere Cache entry Admission Policy in kebab-case (e.g., - * "admit-on-first-miss"). If `admission_policy` is pending - * update, this field equals to the new value specified in the Update request. - * @type bool $ingest_on_write - * Specifies whether objects are ingested into the cache upon write. If not - * set, it defaults to false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Generic metadata for the long running operation. - * - * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * @return \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata|null - */ - public function getCommonMetadata() - { - return $this->common_metadata; - } - - public function hasCommonMetadata() - { - return isset($this->common_metadata); - } - - public function clearCommonMetadata() - { - unset($this->common_metadata); - } - - /** - * Generic metadata for the long running operation. - * - * Generated from protobuf field .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * @param \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata $var - * @return $this - */ - public function setCommonMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\CommonLongRunningOperationMetadata::class); - $this->common_metadata = $var; - - return $this; - } - - /** - * Anywhere Cache ID. - * - * Generated from protobuf field optional string anywhere_cache_id = 2; - * @return string - */ - public function getAnywhereCacheId() - { - return isset($this->anywhere_cache_id) ? $this->anywhere_cache_id : ''; - } - - public function hasAnywhereCacheId() - { - return isset($this->anywhere_cache_id); - } - - public function clearAnywhereCacheId() - { - unset($this->anywhere_cache_id); - } - - /** - * Anywhere Cache ID. - * - * Generated from protobuf field optional string anywhere_cache_id = 2; - * @param string $var - * @return $this - */ - public function setAnywhereCacheId($var) - { - GPBUtil::checkString($var, True); - $this->anywhere_cache_id = $var; - - return $this; - } - - /** - * The zone in which the cache instance is running. For example, - * us-central1-a. - * - * Generated from protobuf field optional string zone = 5; - * @return string - */ - public function getZone() - { - return isset($this->zone) ? $this->zone : ''; - } - - public function hasZone() - { - return isset($this->zone); - } - - public function clearZone() - { - unset($this->zone); - } - - /** - * The zone in which the cache instance is running. For example, - * us-central1-a. - * - * Generated from protobuf field optional string zone = 5; - * @param string $var - * @return $this - */ - public function setZone($var) - { - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Anywhere Cache entry's TTL between 1h and 7days. A cache-level config that - * is applied to all new cache entries on admission. If `ttl` is pending - * update, this field equals to the new value specified in the Update request. - * - * Generated from protobuf field optional .google.protobuf.Duration ttl = 3; - * @return \Google\Protobuf\Duration|null - */ - public function getTtl() - { - return $this->ttl; - } - - public function hasTtl() - { - return isset($this->ttl); - } - - public function clearTtl() - { - unset($this->ttl); - } - - /** - * Anywhere Cache entry's TTL between 1h and 7days. A cache-level config that - * is applied to all new cache entries on admission. If `ttl` is pending - * update, this field equals to the new value specified in the Update request. - * - * Generated from protobuf field optional .google.protobuf.Duration ttl = 3; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTtl($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->ttl = $var; - - return $this; - } - - /** - * Optional. Anywhere Cache entry Admission Policy in kebab-case (e.g., - * "admit-on-first-miss"). If `admission_policy` is pending - * update, this field equals to the new value specified in the Update request. - * - * Generated from protobuf field optional string admission_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAdmissionPolicy() - { - return isset($this->admission_policy) ? $this->admission_policy : ''; - } - - public function hasAdmissionPolicy() - { - return isset($this->admission_policy); - } - - public function clearAdmissionPolicy() - { - unset($this->admission_policy); - } - - /** - * Optional. Anywhere Cache entry Admission Policy in kebab-case (e.g., - * "admit-on-first-miss"). If `admission_policy` is pending - * update, this field equals to the new value specified in the Update request. - * - * Generated from protobuf field optional string admission_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAdmissionPolicy($var) - { - GPBUtil::checkString($var, True); - $this->admission_policy = $var; - - return $this; - } - - /** - * Specifies whether objects are ingested into the cache upon write. If not - * set, it defaults to false. - * - * Generated from protobuf field optional bool ingest_on_write = 6; - * @return bool - */ - public function getIngestOnWrite() - { - return isset($this->ingest_on_write) ? $this->ingest_on_write : false; - } - - public function hasIngestOnWrite() - { - return isset($this->ingest_on_write); - } - - public function clearIngestOnWrite() - { - unset($this->ingest_on_write); - } - - /** - * Specifies whether objects are ingested into the cache upon write. If not - * set, it defaults to false. - * - * Generated from protobuf field optional bool ingest_on_write = 6; - * @param bool $var - * @return $this - */ - public function setIngestOnWrite($var) - { - GPBUtil::checkBool($var); - $this->ingest_on_write = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateAnywhereCacheRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateAnywhereCacheRequest.php deleted file mode 100644 index 791d8de66a65..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateAnywhereCacheRequest.php +++ /dev/null @@ -1,210 +0,0 @@ -google.storage.control.v2.UpdateAnywhereCacheRequest - */ -class UpdateAnywhereCacheRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Anywhere Cache instance to be updated. - * - * Generated from protobuf field .google.storage.control.v2.AnywhereCache anywhere_cache = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $anywhere_cache = null; - /** - * Required. List of fields to be updated. Mutable fields of AnywhereCache - * include `ttl` and `admission_policy`. - * To specify ALL fields, specify a single field with the value `*`. Note: We - * recommend against doing this. If a new field is introduced at a later time, - * an older client updating with the `*` may accidentally reset the new - * field's value. - * Not specifying any fields is an error. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\Storage\Control\V2\AnywhereCache $anywhereCache Required. The Anywhere Cache instance to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. List of fields to be updated. Mutable fields of AnywhereCache - * include `ttl` and `admission_policy`. - * - * To specify ALL fields, specify a single field with the value `*`. Note: We - * recommend against doing this. If a new field is introduced at a later time, - * an older client updating with the `*` may accidentally reset the new - * field's value. - * - * Not specifying any fields is an error. - * - * @return \Google\Cloud\Storage\Control\V2\UpdateAnywhereCacheRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Storage\Control\V2\AnywhereCache $anywhereCache, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setAnywhereCache($anywhereCache) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Storage\Control\V2\AnywhereCache $anywhere_cache - * Required. The Anywhere Cache instance to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. List of fields to be updated. Mutable fields of AnywhereCache - * include `ttl` and `admission_policy`. - * To specify ALL fields, specify a single field with the value `*`. Note: We - * recommend against doing this. If a new field is introduced at a later time, - * an older client updating with the `*` may accidentally reset the new - * field's value. - * Not specifying any fields is an error. - * @type string $request_id - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Anywhere Cache instance to be updated. - * - * Generated from protobuf field .google.storage.control.v2.AnywhereCache anywhere_cache = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Storage\Control\V2\AnywhereCache|null - */ - public function getAnywhereCache() - { - return $this->anywhere_cache; - } - - public function hasAnywhereCache() - { - return isset($this->anywhere_cache); - } - - public function clearAnywhereCache() - { - unset($this->anywhere_cache); - } - - /** - * Required. The Anywhere Cache instance to be updated. - * - * Generated from protobuf field .google.storage.control.v2.AnywhereCache anywhere_cache = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Storage\Control\V2\AnywhereCache $var - * @return $this - */ - public function setAnywhereCache($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\AnywhereCache::class); - $this->anywhere_cache = $var; - - return $this; - } - - /** - * Required. List of fields to be updated. Mutable fields of AnywhereCache - * include `ttl` and `admission_policy`. - * To specify ALL fields, specify a single field with the value `*`. Note: We - * recommend against doing this. If a new field is introduced at a later time, - * an older client updating with the `*` may accidentally reset the new - * field's value. - * Not specifying any fields is an error. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. List of fields to be updated. Mutable fields of AnywhereCache - * include `ttl` and `admission_policy`. - * To specify ALL fields, specify a single field with the value `*`. Note: We - * recommend against doing this. If a new field is introduced at a later time, - * an older client updating with the `*` may accidentally reset the new - * field's value. - * Not specifying any fields is an error. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. UUID is the recommended - * format, but other formats are still accepted. This request is only - * idempotent if a `request_id` is provided. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateFolderIntelligenceConfigRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateFolderIntelligenceConfigRequest.php deleted file mode 100644 index 8affd1ed99e9..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateFolderIntelligenceConfigRequest.php +++ /dev/null @@ -1,185 +0,0 @@ -google.storage.control.v2.UpdateFolderIntelligenceConfigRequest - */ -class UpdateFolderIntelligenceConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `IntelligenceConfig` resource to be updated. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig intelligence_config = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $intelligence_config = null; - /** - * Required. The `update_mask` that specifies the fields within the - * `IntelligenceConfig` resource that should be modified by this update. Only - * the listed fields are updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Optional. The ID that uniquely identifies the request, preventing duplicate - * processing. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig $intelligenceConfig Required. The `IntelligenceConfig` resource to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The `update_mask` that specifies the fields within the - * `IntelligenceConfig` resource that should be modified by this update. Only - * the listed fields are updated. - * - * @return \Google\Cloud\Storage\Control\V2\UpdateFolderIntelligenceConfigRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Storage\Control\V2\IntelligenceConfig $intelligenceConfig, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setIntelligenceConfig($intelligenceConfig) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig $intelligence_config - * Required. The `IntelligenceConfig` resource to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The `update_mask` that specifies the fields within the - * `IntelligenceConfig` resource that should be modified by this update. Only - * the listed fields are updated. - * @type string $request_id - * Optional. The ID that uniquely identifies the request, preventing duplicate - * processing. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `IntelligenceConfig` resource to be updated. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig intelligence_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig|null - */ - public function getIntelligenceConfig() - { - return $this->intelligence_config; - } - - public function hasIntelligenceConfig() - { - return isset($this->intelligence_config); - } - - public function clearIntelligenceConfig() - { - unset($this->intelligence_config); - } - - /** - * Required. The `IntelligenceConfig` resource to be updated. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig intelligence_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig $var - * @return $this - */ - public function setIntelligenceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig::class); - $this->intelligence_config = $var; - - return $this; - } - - /** - * Required. The `update_mask` that specifies the fields within the - * `IntelligenceConfig` resource that should be modified by this update. Only - * the listed fields are updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The `update_mask` that specifies the fields within the - * `IntelligenceConfig` resource that should be modified by this update. Only - * the listed fields are updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. The ID that uniquely identifies the request, preventing duplicate - * processing. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. The ID that uniquely identifies the request, preventing duplicate - * processing. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateOrganizationIntelligenceConfigRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateOrganizationIntelligenceConfigRequest.php deleted file mode 100644 index 9d0844b3e02e..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateOrganizationIntelligenceConfigRequest.php +++ /dev/null @@ -1,185 +0,0 @@ -google.storage.control.v2.UpdateOrganizationIntelligenceConfigRequest - */ -class UpdateOrganizationIntelligenceConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `IntelligenceConfig` resource to be updated. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig intelligence_config = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $intelligence_config = null; - /** - * Required. The `update_mask` that specifies the fields within the - * `IntelligenceConfig` resource that should be modified by this update. Only - * the listed fields are updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Optional. The ID that uniquely identifies the request, preventing duplicate - * processing. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig $intelligenceConfig Required. The `IntelligenceConfig` resource to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The `update_mask` that specifies the fields within the - * `IntelligenceConfig` resource that should be modified by this update. Only - * the listed fields are updated. - * - * @return \Google\Cloud\Storage\Control\V2\UpdateOrganizationIntelligenceConfigRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Storage\Control\V2\IntelligenceConfig $intelligenceConfig, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setIntelligenceConfig($intelligenceConfig) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig $intelligence_config - * Required. The `IntelligenceConfig` resource to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The `update_mask` that specifies the fields within the - * `IntelligenceConfig` resource that should be modified by this update. Only - * the listed fields are updated. - * @type string $request_id - * Optional. The ID that uniquely identifies the request, preventing duplicate - * processing. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `IntelligenceConfig` resource to be updated. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig intelligence_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig|null - */ - public function getIntelligenceConfig() - { - return $this->intelligence_config; - } - - public function hasIntelligenceConfig() - { - return isset($this->intelligence_config); - } - - public function clearIntelligenceConfig() - { - unset($this->intelligence_config); - } - - /** - * Required. The `IntelligenceConfig` resource to be updated. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig intelligence_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig $var - * @return $this - */ - public function setIntelligenceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig::class); - $this->intelligence_config = $var; - - return $this; - } - - /** - * Required. The `update_mask` that specifies the fields within the - * `IntelligenceConfig` resource that should be modified by this update. Only - * the listed fields are updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The `update_mask` that specifies the fields within the - * `IntelligenceConfig` resource that should be modified by this update. Only - * the listed fields are updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. The ID that uniquely identifies the request, preventing duplicate - * processing. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. The ID that uniquely identifies the request, preventing duplicate - * processing. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateProjectIntelligenceConfigRequest.php b/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateProjectIntelligenceConfigRequest.php deleted file mode 100644 index 46b8b8ca8ef2..000000000000 --- a/owl-bot-staging/StorageControl/v2/proto/src/Google/Cloud/Storage/Control/V2/UpdateProjectIntelligenceConfigRequest.php +++ /dev/null @@ -1,185 +0,0 @@ -google.storage.control.v2.UpdateProjectIntelligenceConfigRequest - */ -class UpdateProjectIntelligenceConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `IntelligenceConfig` resource to be updated. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig intelligence_config = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $intelligence_config = null; - /** - * Required. The `update_mask` that specifies the fields within the - * `IntelligenceConfig` resource that should be modified by this update. Only - * the listed fields are updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Optional. The ID that uniquely identifies the request, preventing duplicate - * processing. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig $intelligenceConfig Required. The `IntelligenceConfig` resource to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The `update_mask` that specifies the fields within the - * `IntelligenceConfig` resource that should be modified by this update. Only - * the listed fields are updated. - * - * @return \Google\Cloud\Storage\Control\V2\UpdateProjectIntelligenceConfigRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Storage\Control\V2\IntelligenceConfig $intelligenceConfig, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setIntelligenceConfig($intelligenceConfig) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Storage\Control\V2\IntelligenceConfig $intelligence_config - * Required. The `IntelligenceConfig` resource to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The `update_mask` that specifies the fields within the - * `IntelligenceConfig` resource that should be modified by this update. Only - * the listed fields are updated. - * @type string $request_id - * Optional. The ID that uniquely identifies the request, preventing duplicate - * processing. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storage\Control\V2\StorageControl::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `IntelligenceConfig` resource to be updated. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig intelligence_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Storage\Control\V2\IntelligenceConfig|null - */ - public function getIntelligenceConfig() - { - return $this->intelligence_config; - } - - public function hasIntelligenceConfig() - { - return isset($this->intelligence_config); - } - - public function clearIntelligenceConfig() - { - unset($this->intelligence_config); - } - - /** - * Required. The `IntelligenceConfig` resource to be updated. - * - * Generated from protobuf field .google.storage.control.v2.IntelligenceConfig intelligence_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Storage\Control\V2\IntelligenceConfig $var - * @return $this - */ - public function setIntelligenceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Storage\Control\V2\IntelligenceConfig::class); - $this->intelligence_config = $var; - - return $this; - } - - /** - * Required. The `update_mask` that specifies the fields within the - * `IntelligenceConfig` resource that should be modified by this update. Only - * the listed fields are updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The `update_mask` that specifies the fields within the - * `IntelligenceConfig` resource that should be modified by this update. Only - * the listed fields are updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. The ID that uniquely identifies the request, preventing duplicate - * processing. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. The ID that uniquely identifies the request, preventing duplicate - * processing. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_anywhere_cache.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_anywhere_cache.php deleted file mode 100644 index f1abdf077849..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_anywhere_cache.php +++ /dev/null @@ -1,86 +0,0 @@ -setParent($formattedParent) - ->setAnywhereCache($anywhereCache); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $storageControlClient->createAnywhereCache($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AnywhereCache $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = StorageControlClient::bucketName('[PROJECT]', '[BUCKET]'); - - create_anywhere_cache_sample($formattedParent); -} -// [END storage_v2_generated_StorageControl_CreateAnywhereCache_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_folder.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_folder.php deleted file mode 100644 index a3d84c55b7fe..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_folder.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent) - ->setFolder($folder) - ->setFolderId($folderId); - - // Call the API and handle any network failures. - try { - /** @var Folder $response */ - $response = $storageControlClient->createFolder($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = StorageControlClient::bucketName('[PROJECT]', '[BUCKET]'); - $folderId = '[FOLDER_ID]'; - - create_folder_sample($formattedParent, $folderId); -} -// [END storage_v2_generated_StorageControl_CreateFolder_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_managed_folder.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_managed_folder.php deleted file mode 100644 index 115da2605b90..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/create_managed_folder.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent) - ->setManagedFolder($managedFolder) - ->setManagedFolderId($managedFolderId); - - // Call the API and handle any network failures. - try { - /** @var ManagedFolder $response */ - $response = $storageControlClient->createManagedFolder($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = StorageControlClient::bucketName('[PROJECT]', '[BUCKET]'); - $managedFolderId = '[MANAGED_FOLDER_ID]'; - - create_managed_folder_sample($formattedParent, $managedFolderId); -} -// [END storage_v2_generated_StorageControl_CreateManagedFolder_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_folder.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_folder.php deleted file mode 100644 index a992870e4ed6..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_folder.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $storageControlClient->deleteFolder($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = StorageControlClient::folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); - - delete_folder_sample($formattedName); -} -// [END storage_v2_generated_StorageControl_DeleteFolder_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_folder_recursive.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_folder_recursive.php deleted file mode 100644 index 8489e59e4945..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_folder_recursive.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $storageControlClient->deleteFolderRecursive($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = StorageControlClient::folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); - - delete_folder_recursive_sample($formattedName); -} -// [END storage_v2_generated_StorageControl_DeleteFolderRecursive_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_managed_folder.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_managed_folder.php deleted file mode 100644 index 086301f28714..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/delete_managed_folder.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $storageControlClient->deleteManagedFolder($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = StorageControlClient::managedFolderName( - '[PROJECT]', - '[BUCKET]', - '[MANAGED_FOLDER]' - ); - - delete_managed_folder_sample($formattedName); -} -// [END storage_v2_generated_StorageControl_DeleteManagedFolder_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/disable_anywhere_cache.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/disable_anywhere_cache.php deleted file mode 100644 index 64bdbd4a789b..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/disable_anywhere_cache.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AnywhereCache $response */ - $response = $storageControlClient->disableAnywhereCache($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = StorageControlClient::anywhereCacheName( - '[PROJECT]', - '[BUCKET]', - '[ANYWHERE_CACHE]' - ); - - disable_anywhere_cache_sample($formattedName); -} -// [END storage_v2_generated_StorageControl_DisableAnywhereCache_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_anywhere_cache.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_anywhere_cache.php deleted file mode 100644 index 1176e557d53e..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_anywhere_cache.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AnywhereCache $response */ - $response = $storageControlClient->getAnywhereCache($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = StorageControlClient::anywhereCacheName( - '[PROJECT]', - '[BUCKET]', - '[ANYWHERE_CACHE]' - ); - - get_anywhere_cache_sample($formattedName); -} -// [END storage_v2_generated_StorageControl_GetAnywhereCache_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_folder.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_folder.php deleted file mode 100644 index c8bcd26c27bf..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_folder.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Folder $response */ - $response = $storageControlClient->getFolder($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = StorageControlClient::folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); - - get_folder_sample($formattedName); -} -// [END storage_v2_generated_StorageControl_GetFolder_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_folder_intelligence_config.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_folder_intelligence_config.php deleted file mode 100644 index 363c7e925757..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_folder_intelligence_config.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var IntelligenceConfig $response */ - $response = $storageControlClient->getFolderIntelligenceConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = StorageControlClient::intelligenceConfigName('[FOLDER]', '[LOCATION]'); - - get_folder_intelligence_config_sample($formattedName); -} -// [END storage_v2_generated_StorageControl_GetFolderIntelligenceConfig_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_iam_policy.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_iam_policy.php deleted file mode 100644 index 9f4534c8b9f7..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_iam_policy.php +++ /dev/null @@ -1,75 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $storageControlClient->getIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END storage_v2_generated_StorageControl_GetIamPolicy_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_intelligence_finding.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_intelligence_finding.php deleted file mode 100644 index a84e412b4c49..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_intelligence_finding.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var IntelligenceFinding $response */ - $response = $storageControlClient->getIntelligenceFinding($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = StorageControlClient::intelligenceFindingName( - '[PROJECT]', - '[LOCATION]', - '[INTELLIGENCE_FINDING]' - ); - - get_intelligence_finding_sample($formattedName); -} -// [END storage_v2_generated_StorageControl_GetIntelligenceFinding_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_intelligence_finding_revision.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_intelligence_finding_revision.php deleted file mode 100644 index f30d3ee03a24..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_intelligence_finding_revision.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var IntelligenceFindingRevision $response */ - $response = $storageControlClient->getIntelligenceFindingRevision($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = StorageControlClient::intelligenceFindingRevisionName( - '[PROJECT]', - '[LOCATION]', - '[INTELLIGENCE_FINDING]', - '[REVISION]' - ); - - get_intelligence_finding_revision_sample($formattedName); -} -// [END storage_v2_generated_StorageControl_GetIntelligenceFindingRevision_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_managed_folder.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_managed_folder.php deleted file mode 100644 index 1a8f281b262c..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_managed_folder.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ManagedFolder $response */ - $response = $storageControlClient->getManagedFolder($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = StorageControlClient::managedFolderName( - '[PROJECT]', - '[BUCKET]', - '[MANAGED_FOLDER]' - ); - - get_managed_folder_sample($formattedName); -} -// [END storage_v2_generated_StorageControl_GetManagedFolder_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_organization_intelligence_config.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_organization_intelligence_config.php deleted file mode 100644 index a50fa068a7d1..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_organization_intelligence_config.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var IntelligenceConfig $response */ - $response = $storageControlClient->getOrganizationIntelligenceConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = StorageControlClient::intelligenceConfigName('[FOLDER]', '[LOCATION]'); - - get_organization_intelligence_config_sample($formattedName); -} -// [END storage_v2_generated_StorageControl_GetOrganizationIntelligenceConfig_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_project_intelligence_config.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_project_intelligence_config.php deleted file mode 100644 index c5ffef33f7be..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_project_intelligence_config.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var IntelligenceConfig $response */ - $response = $storageControlClient->getProjectIntelligenceConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = StorageControlClient::intelligenceConfigName('[FOLDER]', '[LOCATION]'); - - get_project_intelligence_config_sample($formattedName); -} -// [END storage_v2_generated_StorageControl_GetProjectIntelligenceConfig_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_storage_layout.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_storage_layout.php deleted file mode 100644 index ee089863ac32..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/get_storage_layout.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var StorageLayout $response */ - $response = $storageControlClient->getStorageLayout($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = StorageControlClient::storageLayoutName('[PROJECT]', '[BUCKET]'); - - get_storage_layout_sample($formattedName); -} -// [END storage_v2_generated_StorageControl_GetStorageLayout_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_anywhere_caches.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_anywhere_caches.php deleted file mode 100644 index 6d6754a83567..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_anywhere_caches.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $storageControlClient->listAnywhereCaches($request); - - /** @var AnywhereCache $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = StorageControlClient::bucketName('[PROJECT]', '[BUCKET]'); - - list_anywhere_caches_sample($formattedParent); -} -// [END storage_v2_generated_StorageControl_ListAnywhereCaches_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_folders.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_folders.php deleted file mode 100644 index 20a07c85fc6b..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_folders.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $storageControlClient->listFolders($request); - - /** @var Folder $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = StorageControlClient::bucketName('[PROJECT]', '[BUCKET]'); - - list_folders_sample($formattedParent); -} -// [END storage_v2_generated_StorageControl_ListFolders_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_intelligence_finding_revisions.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_intelligence_finding_revisions.php deleted file mode 100644 index 6f49c5f48f3e..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_intelligence_finding_revisions.php +++ /dev/null @@ -1,83 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $storageControlClient->listIntelligenceFindingRevisions($request); - - /** @var IntelligenceFindingRevision $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = StorageControlClient::intelligenceFindingName( - '[PROJECT]', - '[LOCATION]', - '[INTELLIGENCE_FINDING]' - ); - - list_intelligence_finding_revisions_sample($formattedParent); -} -// [END storage_v2_generated_StorageControl_ListIntelligenceFindingRevisions_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_intelligence_findings.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_intelligence_findings.php deleted file mode 100644 index e012eae9ecab..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_intelligence_findings.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $storageControlClient->listIntelligenceFindings($request); - - /** @var IntelligenceFinding $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = StorageControlClient::locationName('[PROJECT]', '[LOCATION]'); - - list_intelligence_findings_sample($formattedParent); -} -// [END storage_v2_generated_StorageControl_ListIntelligenceFindings_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_managed_folders.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_managed_folders.php deleted file mode 100644 index 809d0486c77a..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/list_managed_folders.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $storageControlClient->listManagedFolders($request); - - /** @var ManagedFolder $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = StorageControlClient::bucketName('[PROJECT]', '[BUCKET]'); - - list_managed_folders_sample($formattedParent); -} -// [END storage_v2_generated_StorageControl_ListManagedFolders_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/pause_anywhere_cache.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/pause_anywhere_cache.php deleted file mode 100644 index b9deb9aba4fa..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/pause_anywhere_cache.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AnywhereCache $response */ - $response = $storageControlClient->pauseAnywhereCache($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = StorageControlClient::anywhereCacheName( - '[PROJECT]', - '[BUCKET]', - '[ANYWHERE_CACHE]' - ); - - pause_anywhere_cache_sample($formattedName); -} -// [END storage_v2_generated_StorageControl_PauseAnywhereCache_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/rename_folder.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/rename_folder.php deleted file mode 100644 index 0e4ec186638c..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/rename_folder.php +++ /dev/null @@ -1,90 +0,0 @@ -setName($formattedName) - ->setDestinationFolderId($destinationFolderId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $storageControlClient->renameFolder($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Folder $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = StorageControlClient::folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); - $destinationFolderId = '[DESTINATION_FOLDER_ID]'; - - rename_folder_sample($formattedName, $destinationFolderId); -} -// [END storage_v2_generated_StorageControl_RenameFolder_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/resume_anywhere_cache.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/resume_anywhere_cache.php deleted file mode 100644 index c2ae6bf6690f..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/resume_anywhere_cache.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AnywhereCache $response */ - $response = $storageControlClient->resumeAnywhereCache($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = StorageControlClient::anywhereCacheName( - '[PROJECT]', - '[BUCKET]', - '[ANYWHERE_CACHE]' - ); - - resume_anywhere_cache_sample($formattedName); -} -// [END storage_v2_generated_StorageControl_ResumeAnywhereCache_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/set_iam_policy.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/set_iam_policy.php deleted file mode 100644 index 8c1c9cfa0f7b..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $storageControlClient->setIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END storage_v2_generated_StorageControl_SetIamPolicy_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/summarize_intelligence_findings.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/summarize_intelligence_findings.php deleted file mode 100644 index ebd78fc57516..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/summarize_intelligence_findings.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($parent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $storageControlClient->summarizeIntelligenceFindings($request); - - /** @var FindingSummary $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $parent = '[PARENT]'; - - summarize_intelligence_findings_sample($parent); -} -// [END storage_v2_generated_StorageControl_SummarizeIntelligenceFindings_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/test_iam_permissions.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/test_iam_permissions.php deleted file mode 100644 index 086e576654b7..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $storageControlClient->testIamPermissions($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END storage_v2_generated_StorageControl_TestIamPermissions_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_anywhere_cache.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_anywhere_cache.php deleted file mode 100644 index cf85b1f97fb6..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_anywhere_cache.php +++ /dev/null @@ -1,75 +0,0 @@ -setAnywhereCache($anywhereCache) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $storageControlClient->updateAnywhereCache($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AnywhereCache $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END storage_v2_generated_StorageControl_UpdateAnywhereCache_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_folder_intelligence_config.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_folder_intelligence_config.php deleted file mode 100644 index 52f9ea64a70c..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_folder_intelligence_config.php +++ /dev/null @@ -1,62 +0,0 @@ -setIntelligenceConfig($intelligenceConfig) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var IntelligenceConfig $response */ - $response = $storageControlClient->updateFolderIntelligenceConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END storage_v2_generated_StorageControl_UpdateFolderIntelligenceConfig_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_organization_intelligence_config.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_organization_intelligence_config.php deleted file mode 100644 index b4540c406cd5..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_organization_intelligence_config.php +++ /dev/null @@ -1,62 +0,0 @@ -setIntelligenceConfig($intelligenceConfig) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var IntelligenceConfig $response */ - $response = $storageControlClient->updateOrganizationIntelligenceConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END storage_v2_generated_StorageControl_UpdateOrganizationIntelligenceConfig_sync] diff --git a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_project_intelligence_config.php b/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_project_intelligence_config.php deleted file mode 100644 index 068360da11ff..000000000000 --- a/owl-bot-staging/StorageControl/v2/samples/V2/StorageControlClient/update_project_intelligence_config.php +++ /dev/null @@ -1,62 +0,0 @@ -setIntelligenceConfig($intelligenceConfig) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var IntelligenceConfig $response */ - $response = $storageControlClient->updateProjectIntelligenceConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END storage_v2_generated_StorageControl_UpdateProjectIntelligenceConfig_sync] diff --git a/owl-bot-staging/StorageControl/v2/src/V2/Client/StorageControlClient.php b/owl-bot-staging/StorageControl/v2/src/V2/Client/StorageControlClient.php deleted file mode 100644 index 63722a9cdc64..000000000000 --- a/owl-bot-staging/StorageControl/v2/src/V2/Client/StorageControlClient.php +++ /dev/null @@ -1,1594 +0,0 @@ - createAnywhereCacheAsync(CreateAnywhereCacheRequest $request, array $optionalArgs = []) - * @method PromiseInterface createFolderAsync(CreateFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface createManagedFolderAsync(CreateManagedFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRapidCacheAsync(CreateRapidCacheRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFolderAsync(DeleteFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFolderRecursiveAsync(DeleteFolderRecursiveRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteManagedFolderAsync(DeleteManagedFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface disableAnywhereCacheAsync(DisableAnywhereCacheRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAnywhereCacheAsync(GetAnywhereCacheRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFolderAsync(GetFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFolderIntelligenceConfigAsync(GetFolderIntelligenceConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIntelligenceFindingAsync(GetIntelligenceFindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIntelligenceFindingRevisionAsync(GetIntelligenceFindingRevisionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getManagedFolderAsync(GetManagedFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface getOrganizationIntelligenceConfigAsync(GetOrganizationIntelligenceConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getProjectIntelligenceConfigAsync(GetProjectIntelligenceConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRapidCacheAsync(GetRapidCacheRequest $request, array $optionalArgs = []) - * @method PromiseInterface getStorageLayoutAsync(GetStorageLayoutRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAnywhereCachesAsync(ListAnywhereCachesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFoldersAsync(ListFoldersRequest $request, array $optionalArgs = []) - * @method PromiseInterface listIntelligenceFindingRevisionsAsync(ListIntelligenceFindingRevisionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listIntelligenceFindingsAsync(ListIntelligenceFindingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listManagedFoldersAsync(ListManagedFoldersRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRapidCachesAsync(ListRapidCachesRequest $request, array $optionalArgs = []) - * @method PromiseInterface pauseAnywhereCacheAsync(PauseAnywhereCacheRequest $request, array $optionalArgs = []) - * @method PromiseInterface renameFolderAsync(RenameFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface resumeAnywhereCacheAsync(ResumeAnywhereCacheRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface summarizeIntelligenceFindingsAsync(SummarizeIntelligenceFindingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAnywhereCacheAsync(UpdateAnywhereCacheRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateFolderIntelligenceConfigAsync(UpdateFolderIntelligenceConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateManagedFolderAsync(UpdateManagedFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateOrganizationIntelligenceConfigAsync(UpdateOrganizationIntelligenceConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateProjectIntelligenceConfigAsync(UpdateProjectIntelligenceConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateRapidCacheAsync(UpdateRapidCacheRequest $request, array $optionalArgs = []) - */ -final class StorageControlClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.storage.control.v2.StorageControl'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'storage.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'storage.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - 'https://www.googleapis.com/auth/devstorage.full_control', - 'https://www.googleapis.com/auth/devstorage.read_only', - 'https://www.googleapis.com/auth/devstorage.read_write', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/storage_control_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/storage_control_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/storage_control_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/storage_control_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = $this->descriptors[$methodName]['longRunning'] ?? []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * anywhere_cache resource. - * - * @param string $project - * @param string $bucket - * @param string $anywhereCache - * - * @return string The formatted anywhere_cache resource. - */ - public static function anywhereCacheName(string $project, string $bucket, string $anywhereCache): string - { - return self::getPathTemplate('anywhereCache')->render([ - 'project' => $project, - 'bucket' => $bucket, - 'anywhere_cache' => $anywhereCache, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a bucket - * resource. - * - * @param string $project - * @param string $bucket - * - * @return string The formatted bucket resource. - */ - public static function bucketName(string $project, string $bucket): string - { - return self::getPathTemplate('bucket')->render([ - 'project' => $project, - 'bucket' => $bucket, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a folder - * resource. - * - * @param string $project - * @param string $bucket - * @param string $folder - * - * @return string The formatted folder resource. - */ - public static function folderName(string $project, string $bucket, string $folder): string - { - return self::getPathTemplate('folder')->render([ - 'project' => $project, - 'bucket' => $bucket, - 'folder' => $folder, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * folder_location_intelligenceConfig resource. - * - * @param string $folder - * @param string $location - * - * @return string The formatted folder_location_intelligenceConfig resource. - */ - public static function folderLocationIntelligenceConfigName(string $folder, string $location): string - { - return self::getPathTemplate('folderLocationIntelligenceConfig')->render([ - 'folder' => $folder, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * intelligence_config resource. - * - * @param string $folder - * @param string $location - * - * @return string The formatted intelligence_config resource. - */ - public static function intelligenceConfigName(string $folder, string $location): string - { - return self::getPathTemplate('intelligenceConfig')->render([ - 'folder' => $folder, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * intelligence_finding resource. - * - * @param string $project - * @param string $location - * @param string $intelligenceFinding - * - * @return string The formatted intelligence_finding resource. - */ - public static function intelligenceFindingName(string $project, string $location, string $intelligenceFinding): string - { - return self::getPathTemplate('intelligenceFinding')->render([ - 'project' => $project, - 'location' => $location, - 'intelligence_finding' => $intelligenceFinding, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * intelligence_finding_revision resource. - * - * @param string $project - * @param string $location - * @param string $intelligenceFinding - * @param string $revision - * - * @return string The formatted intelligence_finding_revision resource. - */ - public static function intelligenceFindingRevisionName(string $project, string $location, string $intelligenceFinding, string $revision): string - { - return self::getPathTemplate('intelligenceFindingRevision')->render([ - 'project' => $project, - 'location' => $location, - 'intelligence_finding' => $intelligenceFinding, - 'revision' => $revision, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * managed_folder resource. - * - * @param string $project - * @param string $bucket - * @param string $managedFolder - * - * @return string The formatted managed_folder resource. - */ - public static function managedFolderName(string $project, string $bucket, string $managedFolder): string - { - return self::getPathTemplate('managedFolder')->render([ - 'project' => $project, - 'bucket' => $bucket, - 'managed_folder' => $managedFolder, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * org_location_intelligenceConfig resource. - * - * @param string $org - * @param string $location - * - * @return string The formatted org_location_intelligenceConfig resource. - */ - public static function orgLocationIntelligenceConfigName(string $org, string $location): string - { - return self::getPathTemplate('orgLocationIntelligenceConfig')->render([ - 'org' => $org, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_intelligenceConfig resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted project_location_intelligenceConfig resource. - */ - public static function projectLocationIntelligenceConfigName(string $project, string $location): string - { - return self::getPathTemplate('projectLocationIntelligenceConfig')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a rapid_cache - * resource. - * - * @param string $project - * @param string $bucket - * @param string $rapidCache - * - * @return string The formatted rapid_cache resource. - */ - public static function rapidCacheName(string $project, string $bucket, string $rapidCache): string - { - return self::getPathTemplate('rapidCache')->render([ - 'project' => $project, - 'bucket' => $bucket, - 'rapid_cache' => $rapidCache, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * storage_layout resource. - * - * @param string $project - * @param string $bucket - * - * @return string The formatted storage_layout resource. - */ - public static function storageLayoutName(string $project, string $bucket): string - { - return self::getPathTemplate('storageLayout')->render([ - 'project' => $project, - 'bucket' => $bucket, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - anywhereCache: projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache} - * - bucket: projects/{project}/buckets/{bucket} - * - folder: projects/{project}/buckets/{bucket}/folders/{folder=**} - * - folderLocationIntelligenceConfig: folders/{folder}/locations/{location}/intelligenceConfig - * - intelligenceConfig: folders/{folder}/locations/{location}/intelligenceConfig - * - intelligenceFinding: projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding} - * - intelligenceFindingRevision: projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision} - * - location: projects/{project}/locations/{location} - * - managedFolder: projects/{project}/buckets/{bucket}/managedFolders/{managed_folder=**} - * - orgLocationIntelligenceConfig: organizations/{org}/locations/{location}/intelligenceConfig - * - projectLocationIntelligenceConfig: projects/{project}/locations/{location}/intelligenceConfig - * - rapidCache: projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache} - * - storageLayout: projects/{project}/buckets/{bucket}/storageLayout - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'storage.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Storage\Control\V2\StorageControlClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new StorageControlClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates an Anywhere Cache instance. - * - * The async variant is {@see StorageControlClient::createAnywhereCacheAsync()} . - * - * @example samples/V2/StorageControlClient/create_anywhere_cache.php - * - * @param CreateAnywhereCacheRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createAnywhereCache(CreateAnywhereCacheRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateAnywhereCache', $request, $callOptions)->wait(); - } - - /** - * Creates a new folder. This operation is only applicable to a hierarchical - * namespace enabled bucket. - * - * The async variant is {@see StorageControlClient::createFolderAsync()} . - * - * @example samples/V2/StorageControlClient/create_folder.php - * - * @param CreateFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Folder - * - * @throws ApiException Thrown if the API call fails. - */ - public function createFolder(CreateFolderRequest $request, array $callOptions = []): Folder - { - return $this->startApiCall('CreateFolder', $request, $callOptions)->wait(); - } - - /** - * Creates a new managed folder. - * - * The async variant is {@see StorageControlClient::createManagedFolderAsync()} . - * - * @example samples/V2/StorageControlClient/create_managed_folder.php - * - * @param CreateManagedFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ManagedFolder - * - * @throws ApiException Thrown if the API call fails. - */ - public function createManagedFolder(CreateManagedFolderRequest $request, array $callOptions = []): ManagedFolder - { - return $this->startApiCall('CreateManagedFolder', $request, $callOptions)->wait(); - } - - /** - * Creates a Rapid Cache instance. - * - * The async variant is {@see StorageControlClient::createRapidCacheAsync()} . - * - * @example samples/V2/StorageControlClient/create_rapid_cache.php - * - * @param CreateRapidCacheRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createRapidCache(CreateRapidCacheRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateRapidCache', $request, $callOptions)->wait(); - } - - /** - * Permanently deletes an empty folder. This operation is only applicable to a - * hierarchical namespace enabled bucket. - * - * The async variant is {@see StorageControlClient::deleteFolderAsync()} . - * - * @example samples/V2/StorageControlClient/delete_folder.php - * - * @param DeleteFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteFolder(DeleteFolderRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteFolder', $request, $callOptions)->wait(); - } - - /** - * Deletes a folder recursively. This operation is only applicable to a - * hierarchical namespace enabled bucket. - * - * The async variant is {@see StorageControlClient::deleteFolderRecursiveAsync()} . - * - * @example samples/V2/StorageControlClient/delete_folder_recursive.php - * - * @param DeleteFolderRecursiveRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteFolderRecursive(DeleteFolderRecursiveRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteFolderRecursive', $request, $callOptions)->wait(); - } - - /** - * Permanently deletes an empty managed folder. - * - * The async variant is {@see StorageControlClient::deleteManagedFolderAsync()} . - * - * @example samples/V2/StorageControlClient/delete_managed_folder.php - * - * @param DeleteManagedFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteManagedFolder(DeleteManagedFolderRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteManagedFolder', $request, $callOptions)->wait(); - } - - /** - * Disables an Anywhere Cache instance. A disabled instance is read-only. The - * disablement could be revoked by calling ResumeAnywhereCache. The cache - * instance will be deleted automatically if it remains in the disabled state - * for at least one hour. - * - * The async variant is {@see StorageControlClient::disableAnywhereCacheAsync()} . - * - * @example samples/V2/StorageControlClient/disable_anywhere_cache.php - * - * @param DisableAnywhereCacheRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AnywhereCache - * - * @throws ApiException Thrown if the API call fails. - */ - public function disableAnywhereCache(DisableAnywhereCacheRequest $request, array $callOptions = []): AnywhereCache - { - return $this->startApiCall('DisableAnywhereCache', $request, $callOptions)->wait(); - } - - /** - * Gets an Anywhere Cache instance. - * - * The async variant is {@see StorageControlClient::getAnywhereCacheAsync()} . - * - * @example samples/V2/StorageControlClient/get_anywhere_cache.php - * - * @param GetAnywhereCacheRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AnywhereCache - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAnywhereCache(GetAnywhereCacheRequest $request, array $callOptions = []): AnywhereCache - { - return $this->startApiCall('GetAnywhereCache', $request, $callOptions)->wait(); - } - - /** - * Returns metadata for the specified folder. This operation is only - * applicable to a hierarchical namespace enabled bucket. - * - * The async variant is {@see StorageControlClient::getFolderAsync()} . - * - * @example samples/V2/StorageControlClient/get_folder.php - * - * @param GetFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Folder - * - * @throws ApiException Thrown if the API call fails. - */ - public function getFolder(GetFolderRequest $request, array $callOptions = []): Folder - { - return $this->startApiCall('GetFolder', $request, $callOptions)->wait(); - } - - /** - * Returns the Folder scoped singleton IntelligenceConfig resource. - * - * The async variant is - * {@see StorageControlClient::getFolderIntelligenceConfigAsync()} . - * - * @example samples/V2/StorageControlClient/get_folder_intelligence_config.php - * - * @param GetFolderIntelligenceConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return IntelligenceConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function getFolderIntelligenceConfig(GetFolderIntelligenceConfigRequest $request, array $callOptions = []): IntelligenceConfig - { - return $this->startApiCall('GetFolderIntelligenceConfig', $request, $callOptions)->wait(); - } - - /** - * Gets the IAM policy for a specified bucket. - * The `resource` field in the request should be - * `projects/_/buckets/{bucket}` for a bucket, or - * `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` - * for a managed folder. - * - * The async variant is {@see StorageControlClient::getIamPolicyAsync()} . - * - * @example samples/V2/StorageControlClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Gets the `IntelligenceFinding` for a project. - * - * The async variant is {@see StorageControlClient::getIntelligenceFindingAsync()} - * . - * - * @example samples/V2/StorageControlClient/get_intelligence_finding.php - * - * @param GetIntelligenceFindingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return IntelligenceFinding - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIntelligenceFinding(GetIntelligenceFindingRequest $request, array $callOptions = []): IntelligenceFinding - { - return $this->startApiCall('GetIntelligenceFinding', $request, $callOptions)->wait(); - } - - /** - * Gets the `IntelligenceFindingRevision` resource. - * - * The async variant is - * {@see StorageControlClient::getIntelligenceFindingRevisionAsync()} . - * - * @example samples/V2/StorageControlClient/get_intelligence_finding_revision.php - * - * @param GetIntelligenceFindingRevisionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return IntelligenceFindingRevision - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIntelligenceFindingRevision(GetIntelligenceFindingRevisionRequest $request, array $callOptions = []): IntelligenceFindingRevision - { - return $this->startApiCall('GetIntelligenceFindingRevision', $request, $callOptions)->wait(); - } - - /** - * Returns metadata for the specified managed folder. - * - * The async variant is {@see StorageControlClient::getManagedFolderAsync()} . - * - * @example samples/V2/StorageControlClient/get_managed_folder.php - * - * @param GetManagedFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ManagedFolder - * - * @throws ApiException Thrown if the API call fails. - */ - public function getManagedFolder(GetManagedFolderRequest $request, array $callOptions = []): ManagedFolder - { - return $this->startApiCall('GetManagedFolder', $request, $callOptions)->wait(); - } - - /** - * Returns the Organization scoped singleton IntelligenceConfig resource. - * - * The async variant is - * {@see StorageControlClient::getOrganizationIntelligenceConfigAsync()} . - * - * @example samples/V2/StorageControlClient/get_organization_intelligence_config.php - * - * @param GetOrganizationIntelligenceConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return IntelligenceConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function getOrganizationIntelligenceConfig(GetOrganizationIntelligenceConfigRequest $request, array $callOptions = []): IntelligenceConfig - { - return $this->startApiCall('GetOrganizationIntelligenceConfig', $request, $callOptions)->wait(); - } - - /** - * Returns the Project scoped singleton IntelligenceConfig resource. - * - * The async variant is - * {@see StorageControlClient::getProjectIntelligenceConfigAsync()} . - * - * @example samples/V2/StorageControlClient/get_project_intelligence_config.php - * - * @param GetProjectIntelligenceConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return IntelligenceConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function getProjectIntelligenceConfig(GetProjectIntelligenceConfigRequest $request, array $callOptions = []): IntelligenceConfig - { - return $this->startApiCall('GetProjectIntelligenceConfig', $request, $callOptions)->wait(); - } - - /** - * Gets a Rapid Cache instance. - * - * The async variant is {@see StorageControlClient::getRapidCacheAsync()} . - * - * @example samples/V2/StorageControlClient/get_rapid_cache.php - * - * @param GetRapidCacheRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RapidCache - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRapidCache(GetRapidCacheRequest $request, array $callOptions = []): RapidCache - { - return $this->startApiCall('GetRapidCache', $request, $callOptions)->wait(); - } - - /** - * Returns the storage layout configuration for a given bucket. - * - * The async variant is {@see StorageControlClient::getStorageLayoutAsync()} . - * - * @example samples/V2/StorageControlClient/get_storage_layout.php - * - * @param GetStorageLayoutRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return StorageLayout - * - * @throws ApiException Thrown if the API call fails. - */ - public function getStorageLayout(GetStorageLayoutRequest $request, array $callOptions = []): StorageLayout - { - return $this->startApiCall('GetStorageLayout', $request, $callOptions)->wait(); - } - - /** - * Lists Anywhere Cache instances for a given bucket. - * - * The async variant is {@see StorageControlClient::listAnywhereCachesAsync()} . - * - * @example samples/V2/StorageControlClient/list_anywhere_caches.php - * - * @param ListAnywhereCachesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listAnywhereCaches(ListAnywhereCachesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAnywhereCaches', $request, $callOptions); - } - - /** - * Retrieves a list of folders. This operation is only applicable to a - * hierarchical namespace enabled bucket. - * - * The async variant is {@see StorageControlClient::listFoldersAsync()} . - * - * @example samples/V2/StorageControlClient/list_folders.php - * - * @param ListFoldersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listFolders(ListFoldersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListFolders', $request, $callOptions); - } - - /** - * Lists all the revisions of an `IntelligenceFinding` resource. - * - * The async variant is - * {@see StorageControlClient::listIntelligenceFindingRevisionsAsync()} . - * - * @example samples/V2/StorageControlClient/list_intelligence_finding_revisions.php - * - * @param ListIntelligenceFindingRevisionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listIntelligenceFindingRevisions(ListIntelligenceFindingRevisionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListIntelligenceFindingRevisions', $request, $callOptions); - } - - /** - * Lists the `IntelligenceFinding` resources for the specified the project. - * - * The async variant is - * {@see StorageControlClient::listIntelligenceFindingsAsync()} . - * - * @example samples/V2/StorageControlClient/list_intelligence_findings.php - * - * @param ListIntelligenceFindingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listIntelligenceFindings(ListIntelligenceFindingsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListIntelligenceFindings', $request, $callOptions); - } - - /** - * Retrieves a list of managed folders for a given bucket. - * - * The async variant is {@see StorageControlClient::listManagedFoldersAsync()} . - * - * @example samples/V2/StorageControlClient/list_managed_folders.php - * - * @param ListManagedFoldersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listManagedFolders(ListManagedFoldersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListManagedFolders', $request, $callOptions); - } - - /** - * Lists Rapid Cache instances for a given bucket. - * - * The async variant is {@see StorageControlClient::listRapidCachesAsync()} . - * - * @example samples/V2/StorageControlClient/list_rapid_caches.php - * - * @param ListRapidCachesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listRapidCaches(ListRapidCachesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRapidCaches', $request, $callOptions); - } - - /** - * Pauses an Anywhere Cache instance. - * - * The async variant is {@see StorageControlClient::pauseAnywhereCacheAsync()} . - * - * @example samples/V2/StorageControlClient/pause_anywhere_cache.php - * - * @param PauseAnywhereCacheRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AnywhereCache - * - * @throws ApiException Thrown if the API call fails. - */ - public function pauseAnywhereCache(PauseAnywhereCacheRequest $request, array $callOptions = []): AnywhereCache - { - return $this->startApiCall('PauseAnywhereCache', $request, $callOptions)->wait(); - } - - /** - * Renames a source folder to a destination folder. This operation is only - * applicable to a hierarchical namespace enabled bucket. During a rename, the - * source and destination folders are locked until the long running operation - * completes. - * - * The async variant is {@see StorageControlClient::renameFolderAsync()} . - * - * @example samples/V2/StorageControlClient/rename_folder.php - * - * @param RenameFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function renameFolder(RenameFolderRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('RenameFolder', $request, $callOptions)->wait(); - } - - /** - * Resumes a disabled or paused Anywhere Cache instance. - * - * The async variant is {@see StorageControlClient::resumeAnywhereCacheAsync()} . - * - * @example samples/V2/StorageControlClient/resume_anywhere_cache.php - * - * @param ResumeAnywhereCacheRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AnywhereCache - * - * @throws ApiException Thrown if the API call fails. - */ - public function resumeAnywhereCache(ResumeAnywhereCacheRequest $request, array $callOptions = []): AnywhereCache - { - return $this->startApiCall('ResumeAnywhereCache', $request, $callOptions)->wait(); - } - - /** - * Updates an IAM policy for the specified bucket. - * The `resource` field in the request should be - * `projects/_/buckets/{bucket}` for a bucket, or - * `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` - * for a managed folder. - * - * The async variant is {@see StorageControlClient::setIamPolicyAsync()} . - * - * @example samples/V2/StorageControlClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Summarizes the intelligence findings for the specified scope (organization, - * folder or project). - * - * The async variant is - * {@see StorageControlClient::summarizeIntelligenceFindingsAsync()} . - * - * @example samples/V2/StorageControlClient/summarize_intelligence_findings.php - * - * @param SummarizeIntelligenceFindingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function summarizeIntelligenceFindings(SummarizeIntelligenceFindingsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SummarizeIntelligenceFindings', $request, $callOptions); - } - - /** - * Tests a set of permissions on the given bucket, object, or managed folder - * to see which, if any, are held by the caller. - * The `resource` field in the request should be - * `projects/_/buckets/{bucket}` for a bucket, - * `projects/_/buckets/{bucket}/objects/{object}` for an object, or - * `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` - * for a managed folder. - * - * The async variant is {@see StorageControlClient::testIamPermissionsAsync()} . - * - * @example samples/V2/StorageControlClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } - - /** - * Updates an Anywhere Cache instance. Mutable fields include `ttl` and - * `admission_policy`. - * - * The async variant is {@see StorageControlClient::updateAnywhereCacheAsync()} . - * - * @example samples/V2/StorageControlClient/update_anywhere_cache.php - * - * @param UpdateAnywhereCacheRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateAnywhereCache(UpdateAnywhereCacheRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateAnywhereCache', $request, $callOptions)->wait(); - } - - /** - * Updates the Folder scoped singleton IntelligenceConfig resource. - * - * The async variant is - * {@see StorageControlClient::updateFolderIntelligenceConfigAsync()} . - * - * @example samples/V2/StorageControlClient/update_folder_intelligence_config.php - * - * @param UpdateFolderIntelligenceConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return IntelligenceConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateFolderIntelligenceConfig(UpdateFolderIntelligenceConfigRequest $request, array $callOptions = []): IntelligenceConfig - { - return $this->startApiCall('UpdateFolderIntelligenceConfig', $request, $callOptions)->wait(); - } - - /** - * Updates a managed folder. Currently, this RPC only supports updating the - * `rapid_cache_config` field. - * - * The async variant is {@see StorageControlClient::updateManagedFolderAsync()} . - * - * @example samples/V2/StorageControlClient/update_managed_folder.php - * - * @param UpdateManagedFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ManagedFolder - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateManagedFolder(UpdateManagedFolderRequest $request, array $callOptions = []): ManagedFolder - { - return $this->startApiCall('UpdateManagedFolder', $request, $callOptions)->wait(); - } - - /** - * Updates the Organization scoped singleton IntelligenceConfig resource. - * - * The async variant is - * {@see StorageControlClient::updateOrganizationIntelligenceConfigAsync()} . - * - * @example samples/V2/StorageControlClient/update_organization_intelligence_config.php - * - * @param UpdateOrganizationIntelligenceConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return IntelligenceConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateOrganizationIntelligenceConfig(UpdateOrganizationIntelligenceConfigRequest $request, array $callOptions = []): IntelligenceConfig - { - return $this->startApiCall('UpdateOrganizationIntelligenceConfig', $request, $callOptions)->wait(); - } - - /** - * Updates the Project scoped singleton IntelligenceConfig resource. - * - * The async variant is - * {@see StorageControlClient::updateProjectIntelligenceConfigAsync()} . - * - * @example samples/V2/StorageControlClient/update_project_intelligence_config.php - * - * @param UpdateProjectIntelligenceConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return IntelligenceConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateProjectIntelligenceConfig(UpdateProjectIntelligenceConfigRequest $request, array $callOptions = []): IntelligenceConfig - { - return $this->startApiCall('UpdateProjectIntelligenceConfig', $request, $callOptions)->wait(); - } - - /** - * Updates a Rapid Cache instance. - * - * The async variant is {@see StorageControlClient::updateRapidCacheAsync()} . - * - * @example samples/V2/StorageControlClient/update_rapid_cache.php - * - * @param UpdateRapidCacheRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateRapidCache(UpdateRapidCacheRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateRapidCache', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/StorageControl/v2/src/V2/gapic_metadata.json b/owl-bot-staging/StorageControl/v2/src/V2/gapic_metadata.json deleted file mode 100644 index e8d2e7d2683a..000000000000 --- a/owl-bot-staging/StorageControl/v2/src/V2/gapic_metadata.json +++ /dev/null @@ -1,203 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.storage.control.v2", - "libraryPackage": "Google\\Cloud\\Storage\\Control\\V2", - "services": { - "StorageControl": { - "clients": { - "grpc": { - "libraryClient": "StorageControlGapicClient", - "rpcs": { - "CreateAnywhereCache": { - "methods": [ - "createAnywhereCache" - ] - }, - "CreateFolder": { - "methods": [ - "createFolder" - ] - }, - "CreateManagedFolder": { - "methods": [ - "createManagedFolder" - ] - }, - "CreateRapidCache": { - "methods": [ - "createRapidCache" - ] - }, - "DeleteFolder": { - "methods": [ - "deleteFolder" - ] - }, - "DeleteFolderRecursive": { - "methods": [ - "deleteFolderRecursive" - ] - }, - "DeleteManagedFolder": { - "methods": [ - "deleteManagedFolder" - ] - }, - "DisableAnywhereCache": { - "methods": [ - "disableAnywhereCache" - ] - }, - "GetAnywhereCache": { - "methods": [ - "getAnywhereCache" - ] - }, - "GetFolder": { - "methods": [ - "getFolder" - ] - }, - "GetFolderIntelligenceConfig": { - "methods": [ - "getFolderIntelligenceConfig" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "GetIntelligenceFinding": { - "methods": [ - "getIntelligenceFinding" - ] - }, - "GetIntelligenceFindingRevision": { - "methods": [ - "getIntelligenceFindingRevision" - ] - }, - "GetManagedFolder": { - "methods": [ - "getManagedFolder" - ] - }, - "GetOrganizationIntelligenceConfig": { - "methods": [ - "getOrganizationIntelligenceConfig" - ] - }, - "GetProjectIntelligenceConfig": { - "methods": [ - "getProjectIntelligenceConfig" - ] - }, - "GetRapidCache": { - "methods": [ - "getRapidCache" - ] - }, - "GetStorageLayout": { - "methods": [ - "getStorageLayout" - ] - }, - "ListAnywhereCaches": { - "methods": [ - "listAnywhereCaches" - ] - }, - "ListFolders": { - "methods": [ - "listFolders" - ] - }, - "ListIntelligenceFindingRevisions": { - "methods": [ - "listIntelligenceFindingRevisions" - ] - }, - "ListIntelligenceFindings": { - "methods": [ - "listIntelligenceFindings" - ] - }, - "ListManagedFolders": { - "methods": [ - "listManagedFolders" - ] - }, - "ListRapidCaches": { - "methods": [ - "listRapidCaches" - ] - }, - "PauseAnywhereCache": { - "methods": [ - "pauseAnywhereCache" - ] - }, - "RenameFolder": { - "methods": [ - "renameFolder" - ] - }, - "ResumeAnywhereCache": { - "methods": [ - "resumeAnywhereCache" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "SummarizeIntelligenceFindings": { - "methods": [ - "summarizeIntelligenceFindings" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - }, - "UpdateAnywhereCache": { - "methods": [ - "updateAnywhereCache" - ] - }, - "UpdateFolderIntelligenceConfig": { - "methods": [ - "updateFolderIntelligenceConfig" - ] - }, - "UpdateManagedFolder": { - "methods": [ - "updateManagedFolder" - ] - }, - "UpdateOrganizationIntelligenceConfig": { - "methods": [ - "updateOrganizationIntelligenceConfig" - ] - }, - "UpdateProjectIntelligenceConfig": { - "methods": [ - "updateProjectIntelligenceConfig" - ] - }, - "UpdateRapidCache": { - "methods": [ - "updateRapidCache" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_client_config.json b/owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_client_config.json deleted file mode 100644 index 147c29076b2c..000000000000 --- a/owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_client_config.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "interfaces": { - "google.storage.control.v2.StorageControl": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "RESOURCE_EXHAUSTED", - "UNAVAILABLE", - "INTERNAL", - "UNKNOWN" - ], - "no_retry_1_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 2.0, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "CreateAnywhereCache": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateFolder": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateManagedFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateRapidCache": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteFolderRecursive": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteManagedFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DisableAnywhereCache": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAnywhereCache": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetFolder": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetFolderIntelligenceConfig": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetIntelligenceFinding": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetIntelligenceFindingRevision": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetManagedFolder": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetOrganizationIntelligenceConfig": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetProjectIntelligenceConfig": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetRapidCache": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetStorageLayout": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAnywhereCaches": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListFolders": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListIntelligenceFindingRevisions": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListIntelligenceFindings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListManagedFolders": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListRapidCaches": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "PauseAnywhereCache": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RenameFolder": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ResumeAnywhereCache": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SummarizeIntelligenceFindings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateAnywhereCache": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateFolderIntelligenceConfig": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateManagedFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateOrganizationIntelligenceConfig": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateProjectIntelligenceConfig": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateRapidCache": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_descriptor_config.php b/owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_descriptor_config.php deleted file mode 100644 index a0f2bf3d1cd7..000000000000 --- a/owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_descriptor_config.php +++ /dev/null @@ -1,697 +0,0 @@ - [ - 'google.storage.control.v2.StorageControl' => [ - 'CreateAnywhereCache' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Storage\Control\V2\AnywhereCache', - 'metadataReturnType' => '\Google\Cloud\Storage\Control\V2\CreateAnywhereCacheMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - 'autoPopulatedFields' => [ - 'requestId' => \Google\Api\FieldInfo\Format::UUID4, - ], - ], - 'CreateRapidCache' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Storage\Control\V2\RapidCache', - 'metadataReturnType' => '\Google\Cloud\Storage\Control\V2\CreateRapidCacheMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteFolderRecursive' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Storage\Control\V2\DeleteFolderRecursiveMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - 'autoPopulatedFields' => [ - 'requestId' => \Google\Api\FieldInfo\Format::UUID4, - ], - ], - 'RenameFolder' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Storage\Control\V2\Folder', - 'metadataReturnType' => '\Google\Cloud\Storage\Control\V2\RenameFolderMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - 'autoPopulatedFields' => [ - 'requestId' => \Google\Api\FieldInfo\Format::UUID4, - ], - ], - 'UpdateAnywhereCache' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Storage\Control\V2\AnywhereCache', - 'metadataReturnType' => '\Google\Cloud\Storage\Control\V2\UpdateAnywhereCacheMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getAnywhereCache', - 'getName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - 'autoPopulatedFields' => [ - 'requestId' => \Google\Api\FieldInfo\Format::UUID4, - ], - ], - 'UpdateRapidCache' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Storage\Control\V2\RapidCache', - 'metadataReturnType' => '\Google\Cloud\Storage\Control\V2\UpdateRapidCacheMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getRapidCache', - 'getName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - ], - 'CreateFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\Folder', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - 'autoPopulatedFields' => [ - 'requestId' => \Google\Api\FieldInfo\Format::UUID4, - ], - ], - 'CreateManagedFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\ManagedFolder', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - 'autoPopulatedFields' => [ - 'requestId' => \Google\Api\FieldInfo\Format::UUID4, - ], - ], - 'DeleteFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - 'autoPopulatedFields' => [ - 'requestId' => \Google\Api\FieldInfo\Format::UUID4, - ], - ], - 'DeleteManagedFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - 'autoPopulatedFields' => [ - 'requestId' => \Google\Api\FieldInfo\Format::UUID4, - ], - ], - 'DisableAnywhereCache' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\AnywhereCache', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - 'autoPopulatedFields' => [ - 'requestId' => \Google\Api\FieldInfo\Format::UUID4, - ], - ], - 'GetAnywhereCache' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\AnywhereCache', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - 'autoPopulatedFields' => [ - 'requestId' => \Google\Api\FieldInfo\Format::UUID4, - ], - ], - 'GetFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\Folder', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - 'autoPopulatedFields' => [ - 'requestId' => \Google\Api\FieldInfo\Format::UUID4, - ], - ], - 'GetFolderIntelligenceConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\IntelligenceConfig', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getResource', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - ], - 'GetIntelligenceFinding' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\IntelligenceFinding', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetIntelligenceFindingRevision' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\IntelligenceFindingRevision', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetManagedFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\ManagedFolder', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - 'autoPopulatedFields' => [ - 'requestId' => \Google\Api\FieldInfo\Format::UUID4, - ], - ], - 'GetOrganizationIntelligenceConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\IntelligenceConfig', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetProjectIntelligenceConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\IntelligenceConfig', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRapidCache' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\RapidCache', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - ], - 'GetStorageLayout' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\StorageLayout', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - 'autoPopulatedFields' => [ - 'requestId' => \Google\Api\FieldInfo\Format::UUID4, - ], - ], - 'ListAnywhereCaches' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAnywhereCaches', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\ListAnywhereCachesResponse', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - 'autoPopulatedFields' => [ - 'requestId' => \Google\Api\FieldInfo\Format::UUID4, - ], - ], - 'ListFolders' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getFolders', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\ListFoldersResponse', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListIntelligenceFindingRevisions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getIntelligenceFindingRevisions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\ListIntelligenceFindingRevisionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListIntelligenceFindings' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getIntelligenceFindings', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\ListIntelligenceFindingsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListManagedFolders' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getManagedFolders', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\ListManagedFoldersResponse', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - 'autoPopulatedFields' => [ - 'requestId' => \Google\Api\FieldInfo\Format::UUID4, - ], - ], - 'ListRapidCaches' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRapidCaches', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\ListRapidCachesResponse', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'PauseAnywhereCache' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\AnywhereCache', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - 'autoPopulatedFields' => [ - 'requestId' => \Google\Api\FieldInfo\Format::UUID4, - ], - ], - 'ResumeAnywhereCache' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\AnywhereCache', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - 'autoPopulatedFields' => [ - 'requestId' => \Google\Api\FieldInfo\Format::UUID4, - ], - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getResource', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - ], - 'SummarizeIntelligenceFindings' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getFindingSummaries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\SummarizeIntelligenceFindingsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getResource', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)\/objects(?:\/.*)?$/', - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)\/managedFolders(?:\/.*)?$/', - ], - ], - ], - ], - 'UpdateFolderIntelligenceConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\IntelligenceConfig', - 'headerParams' => [ - [ - 'keyName' => 'intelligence_config.name', - 'fieldAccessors' => [ - 'getIntelligenceConfig', - 'getName', - ], - ], - ], - ], - 'UpdateManagedFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\ManagedFolder', - 'headerParams' => [ - [ - 'keyName' => 'bucket', - 'fieldAccessors' => [ - 'getManagedFolder', - 'getName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/buckets\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - ], - 'UpdateOrganizationIntelligenceConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\IntelligenceConfig', - 'headerParams' => [ - [ - 'keyName' => 'intelligence_config.name', - 'fieldAccessors' => [ - 'getIntelligenceConfig', - 'getName', - ], - ], - ], - ], - 'UpdateProjectIntelligenceConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Storage\Control\V2\IntelligenceConfig', - 'headerParams' => [ - [ - 'keyName' => 'intelligence_config.name', - 'fieldAccessors' => [ - 'getIntelligenceConfig', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'anywhereCache' => 'projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}', - 'bucket' => 'projects/{project}/buckets/{bucket}', - 'folder' => 'projects/{project}/buckets/{bucket}/folders/{folder=**}', - 'folderLocationIntelligenceConfig' => 'folders/{folder}/locations/{location}/intelligenceConfig', - 'intelligenceConfig' => 'folders/{folder}/locations/{location}/intelligenceConfig', - 'intelligenceFinding' => 'projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}', - 'intelligenceFindingRevision' => 'projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}/revisions/{revision}', - 'location' => 'projects/{project}/locations/{location}', - 'managedFolder' => 'projects/{project}/buckets/{bucket}/managedFolders/{managed_folder=**}', - 'orgLocationIntelligenceConfig' => 'organizations/{org}/locations/{location}/intelligenceConfig', - 'projectLocationIntelligenceConfig' => 'projects/{project}/locations/{location}/intelligenceConfig', - 'rapidCache' => 'projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}', - 'storageLayout' => 'projects/{project}/buckets/{bucket}/storageLayout', - ], - ], - ], -]; diff --git a/owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_rest_client_config.php b/owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_rest_client_config.php deleted file mode 100644 index 179486e0ae50..000000000000 --- a/owl-bot-staging/StorageControl/v2/src/V2/resources/storage_control_rest_client_config.php +++ /dev/null @@ -1,257 +0,0 @@ - [ - 'google.storage.control.v2.StorageControl' => [ - 'CreateFolder' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/buckets/*}/folders', - 'body' => 'folder', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'folder_id', - ], - ], - 'DeleteFolder' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/buckets/*/folders/**}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteFolderRecursive' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/buckets/*/folders/**}:deleteRecursive', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetFolder' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/buckets/*/folders/**}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetFolderIntelligenceConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=folders/*/locations/*/intelligenceConfig}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetIntelligenceFinding' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/intelligenceFindings/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetIntelligenceFindingRevision' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/intelligenceFindings/*/revisions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOrganizationIntelligenceConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/intelligenceConfig}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetProjectIntelligenceConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/intelligenceConfig}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetStorageLayout' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/buckets/*/storageLayout}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListFolders' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/buckets/*}/folders', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListIntelligenceFindingRevisions' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*/intelligenceFindings/*}/revisions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListIntelligenceFindings' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/intelligenceFindings', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RenameFolder' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/buckets/*/folders/**}:rename', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'SummarizeIntelligenceFindings' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/intelligenceFindings:summarize', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=folders/*/locations/*}/intelligenceFindings:summarize', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/intelligenceFindings:summarize', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateFolderIntelligenceConfig' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{intelligence_config.name=folders/*/locations/*/intelligenceConfig}', - 'body' => 'intelligence_config', - 'placeholders' => [ - 'intelligence_config.name' => [ - 'getters' => [ - 'getIntelligenceConfig', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateOrganizationIntelligenceConfig' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{intelligence_config.name=organizations/*/locations/*/intelligenceConfig}', - 'body' => 'intelligence_config', - 'placeholders' => [ - 'intelligence_config.name' => [ - 'getters' => [ - 'getIntelligenceConfig', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateProjectIntelligenceConfig' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{intelligence_config.name=projects/*/locations/*/intelligenceConfig}', - 'body' => 'intelligence_config', - 'placeholders' => [ - 'intelligence_config.name' => [ - 'getters' => [ - 'getIntelligenceConfig', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/StorageControl/v2/tests/Unit/V2/Client/StorageControlClientTest.php b/owl-bot-staging/StorageControl/v2/tests/Unit/V2/Client/StorageControlClientTest.php deleted file mode 100644 index a9e2b387abbf..000000000000 --- a/owl-bot-staging/StorageControl/v2/tests/Unit/V2/Client/StorageControlClientTest.php +++ /dev/null @@ -1,3167 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return StorageControlClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new StorageControlClient($options); - } - - /** @test */ - public function createAnywhereCacheTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAnywhereCacheTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $zone = 'zone3744684'; - $admissionPolicy = 'admissionPolicy1847270952'; - $state = 'state109757585'; - $pendingUpdate = false; - $ingestOnWrite = true; - $expectedResponse = new AnywhereCache(); - $expectedResponse->setName($name); - $expectedResponse->setZone($zone); - $expectedResponse->setAdmissionPolicy($admissionPolicy); - $expectedResponse->setState($state); - $expectedResponse->setPendingUpdate($pendingUpdate); - $expectedResponse->setIngestOnWrite($ingestOnWrite); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAnywhereCacheTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); - $anywhereCache = new AnywhereCache(); - $request = (new CreateAnywhereCacheRequest()) - ->setParent($formattedParent) - ->setAnywhereCache($anywhereCache); - $response = $gapicClient->createAnywhereCache($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/CreateAnywhereCache', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAnywhereCache(); - $this->assertProtobufEquals($anywhereCache, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAnywhereCacheTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createAnywhereCacheExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAnywhereCacheTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); - $anywhereCache = new AnywhereCache(); - $request = (new CreateAnywhereCacheRequest()) - ->setParent($formattedParent) - ->setAnywhereCache($anywhereCache); - $response = $gapicClient->createAnywhereCache($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAnywhereCacheTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $metageneration = 1048558813; - $expectedResponse = new Folder(); - $expectedResponse->setName($name); - $expectedResponse->setMetageneration($metageneration); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); - $folder = new Folder(); - $folderId = 'folderId527488652'; - $request = (new CreateFolderRequest()) - ->setParent($formattedParent) - ->setFolder($folder) - ->setFolderId($folderId); - $response = $gapicClient->createFolder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/CreateFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getFolder(); - $this->assertProtobufEquals($folder, $actualValue); - $actualValue = $actualRequestObject->getFolderId(); - $this->assertProtobufEquals($folderId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); - $folder = new Folder(); - $folderId = 'folderId527488652'; - $request = (new CreateFolderRequest()) - ->setParent($formattedParent) - ->setFolder($folder) - ->setFolderId($folderId); - try { - $gapicClient->createFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createManagedFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $metageneration = 1048558813; - $expectedResponse = new ManagedFolder(); - $expectedResponse->setName($name); - $expectedResponse->setMetageneration($metageneration); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); - $managedFolder = new ManagedFolder(); - $managedFolderId = 'managedFolderId-239131156'; - $request = (new CreateManagedFolderRequest()) - ->setParent($formattedParent) - ->setManagedFolder($managedFolder) - ->setManagedFolderId($managedFolderId); - $response = $gapicClient->createManagedFolder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/CreateManagedFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getManagedFolder(); - $this->assertProtobufEquals($managedFolder, $actualValue); - $actualValue = $actualRequestObject->getManagedFolderId(); - $this->assertProtobufEquals($managedFolderId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createManagedFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); - $managedFolder = new ManagedFolder(); - $managedFolderId = 'managedFolderId-239131156'; - $request = (new CreateManagedFolderRequest()) - ->setParent($formattedParent) - ->setManagedFolder($managedFolder) - ->setManagedFolderId($managedFolderId); - try { - $gapicClient->createManagedFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRapidCacheTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createRapidCacheTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $zone = 'zone3744684'; - $cacheType = 'cacheType29096407'; - $admissionPolicy = 'admissionPolicy1847270952'; - $state = 'state109757585'; - $pendingUpdate = false; - $expectedResponse = new RapidCache(); - $expectedResponse->setName($name); - $expectedResponse->setZone($zone); - $expectedResponse->setCacheType($cacheType); - $expectedResponse->setAdmissionPolicy($admissionPolicy); - $expectedResponse->setState($state); - $expectedResponse->setPendingUpdate($pendingUpdate); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createRapidCacheTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); - $rapidCache = new RapidCache(); - $request = (new CreateRapidCacheRequest()) - ->setParent($formattedParent) - ->setRapidCache($rapidCache); - $response = $gapicClient->createRapidCache($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/CreateRapidCache', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getRapidCache(); - $this->assertProtobufEquals($rapidCache, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createRapidCacheTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createRapidCacheExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createRapidCacheTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); - $rapidCache = new RapidCache(); - $request = (new CreateRapidCacheRequest()) - ->setParent($formattedParent) - ->setRapidCache($rapidCache); - $response = $gapicClient->createRapidCache($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createRapidCacheTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); - $request = (new DeleteFolderRequest()) - ->setName($formattedName); - $gapicClient->deleteFolder($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/DeleteFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); - $request = (new DeleteFolderRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFolderRecursiveTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteFolderRecursiveTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteFolderRecursiveTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); - $request = (new DeleteFolderRecursiveRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteFolderRecursive($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/DeleteFolderRecursive', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteFolderRecursiveTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteFolderRecursiveExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteFolderRecursiveTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); - $request = (new DeleteFolderRecursiveRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteFolderRecursive($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteFolderRecursiveTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteManagedFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->managedFolderName('[PROJECT]', '[BUCKET]', '[MANAGED_FOLDER]'); - $request = (new DeleteManagedFolderRequest()) - ->setName($formattedName); - $gapicClient->deleteManagedFolder($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/DeleteManagedFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteManagedFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->managedFolderName('[PROJECT]', '[BUCKET]', '[MANAGED_FOLDER]'); - $request = (new DeleteManagedFolderRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteManagedFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function disableAnywhereCacheTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone = 'zone3744684'; - $admissionPolicy = 'admissionPolicy1847270952'; - $state = 'state109757585'; - $pendingUpdate = false; - $ingestOnWrite = true; - $expectedResponse = new AnywhereCache(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone); - $expectedResponse->setAdmissionPolicy($admissionPolicy); - $expectedResponse->setState($state); - $expectedResponse->setPendingUpdate($pendingUpdate); - $expectedResponse->setIngestOnWrite($ingestOnWrite); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); - $request = (new DisableAnywhereCacheRequest()) - ->setName($formattedName); - $response = $gapicClient->disableAnywhereCache($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/DisableAnywhereCache', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function disableAnywhereCacheExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); - $request = (new DisableAnywhereCacheRequest()) - ->setName($formattedName); - try { - $gapicClient->disableAnywhereCache($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAnywhereCacheTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone = 'zone3744684'; - $admissionPolicy = 'admissionPolicy1847270952'; - $state = 'state109757585'; - $pendingUpdate = false; - $ingestOnWrite = true; - $expectedResponse = new AnywhereCache(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone); - $expectedResponse->setAdmissionPolicy($admissionPolicy); - $expectedResponse->setState($state); - $expectedResponse->setPendingUpdate($pendingUpdate); - $expectedResponse->setIngestOnWrite($ingestOnWrite); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); - $request = (new GetAnywhereCacheRequest()) - ->setName($formattedName); - $response = $gapicClient->getAnywhereCache($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/GetAnywhereCache', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAnywhereCacheExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); - $request = (new GetAnywhereCacheRequest()) - ->setName($formattedName); - try { - $gapicClient->getAnywhereCache($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $metageneration = 1048558813; - $expectedResponse = new Folder(); - $expectedResponse->setName($name2); - $expectedResponse->setMetageneration($metageneration); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); - $request = (new GetFolderRequest()) - ->setName($formattedName); - $response = $gapicClient->getFolder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/GetFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); - $request = (new GetFolderRequest()) - ->setName($formattedName); - try { - $gapicClient->getFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFolderIntelligenceConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new IntelligenceConfig(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->intelligenceConfigName('[FOLDER]', '[LOCATION]'); - $request = (new GetFolderIntelligenceConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->getFolderIntelligenceConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/GetFolderIntelligenceConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFolderIntelligenceConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->intelligenceConfigName('[FOLDER]', '[LOCATION]'); - $request = (new GetFolderIntelligenceConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->getFolderIntelligenceConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIntelligenceFindingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $targetResource = 'targetResource-69552388'; - $expectedResponse = new IntelligenceFinding(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setTargetResource($targetResource); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->intelligenceFindingName('[PROJECT]', '[LOCATION]', '[INTELLIGENCE_FINDING]'); - $request = (new GetIntelligenceFindingRequest()) - ->setName($formattedName); - $response = $gapicClient->getIntelligenceFinding($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/GetIntelligenceFinding', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIntelligenceFindingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->intelligenceFindingName('[PROJECT]', '[LOCATION]', '[INTELLIGENCE_FINDING]'); - $request = (new GetIntelligenceFindingRequest()) - ->setName($formattedName); - try { - $gapicClient->getIntelligenceFinding($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIntelligenceFindingRevisionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new IntelligenceFindingRevision(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->intelligenceFindingRevisionName('[PROJECT]', '[LOCATION]', '[INTELLIGENCE_FINDING]', '[REVISION]'); - $request = (new GetIntelligenceFindingRevisionRequest()) - ->setName($formattedName); - $response = $gapicClient->getIntelligenceFindingRevision($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/GetIntelligenceFindingRevision', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIntelligenceFindingRevisionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->intelligenceFindingRevisionName('[PROJECT]', '[LOCATION]', '[INTELLIGENCE_FINDING]', '[REVISION]'); - $request = (new GetIntelligenceFindingRevisionRequest()) - ->setName($formattedName); - try { - $gapicClient->getIntelligenceFindingRevision($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getManagedFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $metageneration = 1048558813; - $expectedResponse = new ManagedFolder(); - $expectedResponse->setName($name2); - $expectedResponse->setMetageneration($metageneration); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->managedFolderName('[PROJECT]', '[BUCKET]', '[MANAGED_FOLDER]'); - $request = (new GetManagedFolderRequest()) - ->setName($formattedName); - $response = $gapicClient->getManagedFolder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/GetManagedFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getManagedFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->managedFolderName('[PROJECT]', '[BUCKET]', '[MANAGED_FOLDER]'); - $request = (new GetManagedFolderRequest()) - ->setName($formattedName); - try { - $gapicClient->getManagedFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOrganizationIntelligenceConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new IntelligenceConfig(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->intelligenceConfigName('[FOLDER]', '[LOCATION]'); - $request = (new GetOrganizationIntelligenceConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->getOrganizationIntelligenceConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/GetOrganizationIntelligenceConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOrganizationIntelligenceConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->intelligenceConfigName('[FOLDER]', '[LOCATION]'); - $request = (new GetOrganizationIntelligenceConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->getOrganizationIntelligenceConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProjectIntelligenceConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new IntelligenceConfig(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->intelligenceConfigName('[FOLDER]', '[LOCATION]'); - $request = (new GetProjectIntelligenceConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->getProjectIntelligenceConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/GetProjectIntelligenceConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProjectIntelligenceConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->intelligenceConfigName('[FOLDER]', '[LOCATION]'); - $request = (new GetProjectIntelligenceConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->getProjectIntelligenceConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRapidCacheTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone = 'zone3744684'; - $cacheType = 'cacheType29096407'; - $admissionPolicy = 'admissionPolicy1847270952'; - $state = 'state109757585'; - $pendingUpdate = false; - $expectedResponse = new RapidCache(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone); - $expectedResponse->setCacheType($cacheType); - $expectedResponse->setAdmissionPolicy($admissionPolicy); - $expectedResponse->setState($state); - $expectedResponse->setPendingUpdate($pendingUpdate); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->rapidCacheName('[PROJECT]', '[BUCKET]', '[RAPID_CACHE]'); - $request = (new GetRapidCacheRequest()) - ->setName($formattedName); - $response = $gapicClient->getRapidCache($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/GetRapidCache', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRapidCacheExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->rapidCacheName('[PROJECT]', '[BUCKET]', '[RAPID_CACHE]'); - $request = (new GetRapidCacheRequest()) - ->setName($formattedName); - try { - $gapicClient->getRapidCache($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getStorageLayoutTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $location = 'location1901043637'; - $locationType = 'locationType-1796591228'; - $expectedResponse = new StorageLayout(); - $expectedResponse->setName($name2); - $expectedResponse->setLocation($location); - $expectedResponse->setLocationType($locationType); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->storageLayoutName('[PROJECT]', '[BUCKET]'); - $request = (new GetStorageLayoutRequest()) - ->setName($formattedName); - $response = $gapicClient->getStorageLayout($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/GetStorageLayout', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getStorageLayoutExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->storageLayoutName('[PROJECT]', '[BUCKET]'); - $request = (new GetStorageLayoutRequest()) - ->setName($formattedName); - try { - $gapicClient->getStorageLayout($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAnywhereCachesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $anywhereCachesElement = new AnywhereCache(); - $anywhereCaches = [ - $anywhereCachesElement, - ]; - $expectedResponse = new ListAnywhereCachesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAnywhereCaches($anywhereCaches); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); - $request = (new ListAnywhereCachesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAnywhereCaches($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAnywhereCaches()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/ListAnywhereCaches', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAnywhereCachesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); - $request = (new ListAnywhereCachesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAnywhereCaches($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFoldersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $foldersElement = new Folder(); - $folders = [ - $foldersElement, - ]; - $expectedResponse = new ListFoldersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFolders($folders); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); - $request = (new ListFoldersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listFolders($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFolders()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/ListFolders', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFoldersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); - $request = (new ListFoldersRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listFolders($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listIntelligenceFindingRevisionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $intelligenceFindingRevisionsElement = new IntelligenceFindingRevision(); - $intelligenceFindingRevisions = [ - $intelligenceFindingRevisionsElement, - ]; - $expectedResponse = new ListIntelligenceFindingRevisionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setIntelligenceFindingRevisions($intelligenceFindingRevisions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->intelligenceFindingName('[PROJECT]', '[LOCATION]', '[INTELLIGENCE_FINDING]'); - $request = (new ListIntelligenceFindingRevisionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listIntelligenceFindingRevisions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getIntelligenceFindingRevisions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/ListIntelligenceFindingRevisions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listIntelligenceFindingRevisionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->intelligenceFindingName('[PROJECT]', '[LOCATION]', '[INTELLIGENCE_FINDING]'); - $request = (new ListIntelligenceFindingRevisionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listIntelligenceFindingRevisions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listIntelligenceFindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $intelligenceFindingsElement = new IntelligenceFinding(); - $intelligenceFindings = [ - $intelligenceFindingsElement, - ]; - $expectedResponse = new ListIntelligenceFindingsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setIntelligenceFindings($intelligenceFindings); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListIntelligenceFindingsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listIntelligenceFindings($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getIntelligenceFindings()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/ListIntelligenceFindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listIntelligenceFindingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListIntelligenceFindingsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listIntelligenceFindings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listManagedFoldersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $managedFoldersElement = new ManagedFolder(); - $managedFolders = [ - $managedFoldersElement, - ]; - $expectedResponse = new ListManagedFoldersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setManagedFolders($managedFolders); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); - $request = (new ListManagedFoldersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listManagedFolders($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getManagedFolders()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/ListManagedFolders', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listManagedFoldersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); - $request = (new ListManagedFoldersRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listManagedFolders($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRapidCachesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $rapidCachesElement = new RapidCache(); - $rapidCaches = [ - $rapidCachesElement, - ]; - $expectedResponse = new ListRapidCachesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRapidCaches($rapidCaches); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); - $request = (new ListRapidCachesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRapidCaches($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRapidCaches()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/ListRapidCaches', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRapidCachesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); - $request = (new ListRapidCachesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRapidCaches($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function pauseAnywhereCacheTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone = 'zone3744684'; - $admissionPolicy = 'admissionPolicy1847270952'; - $state = 'state109757585'; - $pendingUpdate = false; - $ingestOnWrite = true; - $expectedResponse = new AnywhereCache(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone); - $expectedResponse->setAdmissionPolicy($admissionPolicy); - $expectedResponse->setState($state); - $expectedResponse->setPendingUpdate($pendingUpdate); - $expectedResponse->setIngestOnWrite($ingestOnWrite); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); - $request = (new PauseAnywhereCacheRequest()) - ->setName($formattedName); - $response = $gapicClient->pauseAnywhereCache($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/PauseAnywhereCache', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function pauseAnywhereCacheExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); - $request = (new PauseAnywhereCacheRequest()) - ->setName($formattedName); - try { - $gapicClient->pauseAnywhereCache($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function renameFolderTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/renameFolderTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $metageneration = 1048558813; - $expectedResponse = new Folder(); - $expectedResponse->setName($name2); - $expectedResponse->setMetageneration($metageneration); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/renameFolderTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); - $destinationFolderId = 'destinationFolderId368368539'; - $request = (new RenameFolderRequest()) - ->setName($formattedName) - ->setDestinationFolderId($destinationFolderId); - $response = $gapicClient->renameFolder($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/RenameFolder', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualApiRequestObject->getDestinationFolderId(); - $this->assertProtobufEquals($destinationFolderId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/renameFolderTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function renameFolderExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/renameFolderTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[BUCKET]', '[FOLDER]'); - $destinationFolderId = 'destinationFolderId368368539'; - $request = (new RenameFolderRequest()) - ->setName($formattedName) - ->setDestinationFolderId($destinationFolderId); - $response = $gapicClient->renameFolder($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/renameFolderTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function resumeAnywhereCacheTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone = 'zone3744684'; - $admissionPolicy = 'admissionPolicy1847270952'; - $state = 'state109757585'; - $pendingUpdate = false; - $ingestOnWrite = true; - $expectedResponse = new AnywhereCache(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone); - $expectedResponse->setAdmissionPolicy($admissionPolicy); - $expectedResponse->setState($state); - $expectedResponse->setPendingUpdate($pendingUpdate); - $expectedResponse->setIngestOnWrite($ingestOnWrite); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); - $request = (new ResumeAnywhereCacheRequest()) - ->setName($formattedName); - $response = $gapicClient->resumeAnywhereCache($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/ResumeAnywhereCache', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function resumeAnywhereCacheExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->anywhereCacheName('[PROJECT]', '[BUCKET]', '[ANYWHERE_CACHE]'); - $request = (new ResumeAnywhereCacheRequest()) - ->setName($formattedName); - try { - $gapicClient->resumeAnywhereCache($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function summarizeIntelligenceFindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $findingSummariesElement = new FindingSummary(); - $findingSummaries = [ - $findingSummariesElement, - ]; - $expectedResponse = new SummarizeIntelligenceFindingsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFindingSummaries($findingSummaries); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new SummarizeIntelligenceFindingsRequest()) - ->setParent($parent); - $response = $gapicClient->summarizeIntelligenceFindings($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFindingSummaries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/SummarizeIntelligenceFindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function summarizeIntelligenceFindingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $parent = 'parent-995424086'; - $request = (new SummarizeIntelligenceFindingsRequest()) - ->setParent($parent); - try { - $gapicClient->summarizeIntelligenceFindings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAnywhereCacheTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateAnywhereCacheTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $zone = 'zone3744684'; - $admissionPolicy = 'admissionPolicy1847270952'; - $state = 'state109757585'; - $pendingUpdate = false; - $ingestOnWrite = true; - $expectedResponse = new AnywhereCache(); - $expectedResponse->setName($name); - $expectedResponse->setZone($zone); - $expectedResponse->setAdmissionPolicy($admissionPolicy); - $expectedResponse->setState($state); - $expectedResponse->setPendingUpdate($pendingUpdate); - $expectedResponse->setIngestOnWrite($ingestOnWrite); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateAnywhereCacheTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $anywhereCache = new AnywhereCache(); - $updateMask = new FieldMask(); - $request = (new UpdateAnywhereCacheRequest()) - ->setAnywhereCache($anywhereCache) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateAnywhereCache($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/UpdateAnywhereCache', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getAnywhereCache(); - $this->assertProtobufEquals($anywhereCache, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAnywhereCacheTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateAnywhereCacheExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateAnywhereCacheTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $anywhereCache = new AnywhereCache(); - $updateMask = new FieldMask(); - $request = (new UpdateAnywhereCacheRequest()) - ->setAnywhereCache($anywhereCache) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateAnywhereCache($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAnywhereCacheTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateFolderIntelligenceConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new IntelligenceConfig(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $intelligenceConfig = new IntelligenceConfig(); - $updateMask = new FieldMask(); - $request = (new UpdateFolderIntelligenceConfigRequest()) - ->setIntelligenceConfig($intelligenceConfig) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateFolderIntelligenceConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/UpdateFolderIntelligenceConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getIntelligenceConfig(); - $this->assertProtobufEquals($intelligenceConfig, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateFolderIntelligenceConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $intelligenceConfig = new IntelligenceConfig(); - $updateMask = new FieldMask(); - $request = (new UpdateFolderIntelligenceConfigRequest()) - ->setIntelligenceConfig($intelligenceConfig) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateFolderIntelligenceConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateManagedFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $metageneration = 1048558813; - $expectedResponse = new ManagedFolder(); - $expectedResponse->setName($name); - $expectedResponse->setMetageneration($metageneration); - $transport->addResponse($expectedResponse); - // Mock request - $managedFolder = new ManagedFolder(); - $request = (new UpdateManagedFolderRequest()) - ->setManagedFolder($managedFolder); - $response = $gapicClient->updateManagedFolder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/UpdateManagedFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getManagedFolder(); - $this->assertProtobufEquals($managedFolder, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateManagedFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $managedFolder = new ManagedFolder(); - $request = (new UpdateManagedFolderRequest()) - ->setManagedFolder($managedFolder); - try { - $gapicClient->updateManagedFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateOrganizationIntelligenceConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new IntelligenceConfig(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $intelligenceConfig = new IntelligenceConfig(); - $updateMask = new FieldMask(); - $request = (new UpdateOrganizationIntelligenceConfigRequest()) - ->setIntelligenceConfig($intelligenceConfig) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateOrganizationIntelligenceConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/UpdateOrganizationIntelligenceConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getIntelligenceConfig(); - $this->assertProtobufEquals($intelligenceConfig, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateOrganizationIntelligenceConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $intelligenceConfig = new IntelligenceConfig(); - $updateMask = new FieldMask(); - $request = (new UpdateOrganizationIntelligenceConfigRequest()) - ->setIntelligenceConfig($intelligenceConfig) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateOrganizationIntelligenceConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateProjectIntelligenceConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new IntelligenceConfig(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $intelligenceConfig = new IntelligenceConfig(); - $updateMask = new FieldMask(); - $request = (new UpdateProjectIntelligenceConfigRequest()) - ->setIntelligenceConfig($intelligenceConfig) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateProjectIntelligenceConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/UpdateProjectIntelligenceConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getIntelligenceConfig(); - $this->assertProtobufEquals($intelligenceConfig, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateProjectIntelligenceConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $intelligenceConfig = new IntelligenceConfig(); - $updateMask = new FieldMask(); - $request = (new UpdateProjectIntelligenceConfigRequest()) - ->setIntelligenceConfig($intelligenceConfig) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateProjectIntelligenceConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateRapidCacheTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateRapidCacheTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $zone = 'zone3744684'; - $cacheType = 'cacheType29096407'; - $admissionPolicy = 'admissionPolicy1847270952'; - $state = 'state109757585'; - $pendingUpdate = false; - $expectedResponse = new RapidCache(); - $expectedResponse->setName($name); - $expectedResponse->setZone($zone); - $expectedResponse->setCacheType($cacheType); - $expectedResponse->setAdmissionPolicy($admissionPolicy); - $expectedResponse->setState($state); - $expectedResponse->setPendingUpdate($pendingUpdate); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateRapidCacheTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $rapidCache = new RapidCache(); - $updateMask = new FieldMask(); - $request = (new UpdateRapidCacheRequest()) - ->setRapidCache($rapidCache) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateRapidCache($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/UpdateRapidCache', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getRapidCache(); - $this->assertProtobufEquals($rapidCache, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateRapidCacheTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateRapidCacheExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateRapidCacheTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $rapidCache = new RapidCache(); - $updateMask = new FieldMask(); - $request = (new UpdateRapidCacheRequest()) - ->setRapidCache($rapidCache) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateRapidCache($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateRapidCacheTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createAnywhereCacheAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAnywhereCacheTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $zone = 'zone3744684'; - $admissionPolicy = 'admissionPolicy1847270952'; - $state = 'state109757585'; - $pendingUpdate = false; - $ingestOnWrite = true; - $expectedResponse = new AnywhereCache(); - $expectedResponse->setName($name); - $expectedResponse->setZone($zone); - $expectedResponse->setAdmissionPolicy($admissionPolicy); - $expectedResponse->setState($state); - $expectedResponse->setPendingUpdate($pendingUpdate); - $expectedResponse->setIngestOnWrite($ingestOnWrite); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAnywhereCacheTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->bucketName('[PROJECT]', '[BUCKET]'); - $anywhereCache = new AnywhereCache(); - $request = (new CreateAnywhereCacheRequest()) - ->setParent($formattedParent) - ->setAnywhereCache($anywhereCache); - $response = $gapicClient->createAnywhereCacheAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.storage.control.v2.StorageControl/CreateAnywhereCache', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAnywhereCache(); - $this->assertProtobufEquals($anywhereCache, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAnywhereCacheTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -}