From 52555c9439118f9567dffe8370f275ff977077ea Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 18 Dec 2024 00:29:08 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= 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 --- StorageTransfer/metadata/V1/Transfer.php | 6 +- StorageTransfer/metadata/V1/TransferTypes.php | Bin 10789 -> 11170 bytes .../list_transfer_jobs.php | 33 +- StorageTransfer/src/V1/HttpData.php | 42 +- .../src/V1/ListTransferJobsRequest.php | 132 +- .../src}/V1/ReplicationSpec.php | 0 StorageTransfer/src/V1/TransferJob.php | 44 + .../Google/Storagetransfer/V1/Transfer.php | 112 -- .../Storagetransfer/V1/TransferTypes.php | Bin 11170 -> 0 bytes .../Cloud/StorageTransfer/V1/AgentPool.php | 187 --- .../V1/AgentPool/BandwidthLimit.php | 74 -- .../StorageTransfer/V1/AgentPool/State.php | 74 -- .../Cloud/StorageTransfer/V1/AwsAccessKey.php | 109 -- .../V1/AwsS3CompatibleData.php | 227 ---- .../Cloud/StorageTransfer/V1/AwsS3Data.php | 445 ------- .../V1/AzureBlobStorageData.php | 291 ----- .../StorageTransfer/V1/AzureCredentials.php | 85 -- .../V1/CreateAgentPoolRequest.php | 215 --- .../V1/CreateTransferJobRequest.php | 77 -- .../V1/DeleteAgentPoolRequest.php | 80 -- .../V1/DeleteTransferJobRequest.php | 105 -- .../StorageTransfer/V1/ErrorLogEntry.php | 105 -- .../Cloud/StorageTransfer/V1/ErrorSummary.php | 144 -- .../Cloud/StorageTransfer/V1/EventStream.php | 188 --- .../Cloud/StorageTransfer/V1/GcsData.php | 198 --- .../V1/GetAgentPoolRequest.php | 80 -- .../V1/GetGoogleServiceAccountRequest.php | 71 - .../V1/GetTransferJobRequest.php | 105 -- .../V1/GoogleServiceAccount.php | 101 -- .../Cloud/StorageTransfer/V1/HdfsData.php | 70 - .../Cloud/StorageTransfer/V1/HttpData.php | 103 -- .../V1/ListAgentPoolsRequest.php | 202 --- .../V1/ListAgentPoolsResponse.php | 101 -- .../V1/ListTransferJobsRequest.php | 228 ---- .../V1/ListTransferJobsResponse.php | 101 -- .../StorageTransfer/V1/LoggingConfig.php | 159 --- .../V1/LoggingConfig/LoggableAction.php | 71 - .../V1/LoggingConfig/LoggableActionState.php | 66 - .../StorageTransfer/V1/MetadataOptions.php | 427 ------ .../V1/MetadataOptions/Acl.php | 68 - .../V1/MetadataOptions/GID.php | 64 - .../V1/MetadataOptions/KmsKey.php | 66 - .../V1/MetadataOptions/Mode.php | 64 - .../V1/MetadataOptions/StorageClass.php | 95 -- .../V1/MetadataOptions/Symlink.php | 64 - .../V1/MetadataOptions/TemporaryHold.php | 64 - .../V1/MetadataOptions/TimeCreated.php | 68 - .../V1/MetadataOptions/UID.php | 64 - .../StorageTransfer/V1/NotificationConfig.php | 170 --- .../V1/NotificationConfig/EventType.php | 78 -- .../V1/NotificationConfig/PayloadFormat.php | 66 - .../StorageTransfer/V1/ObjectConditions.php | 560 -------- .../V1/PauseTransferOperationRequest.php | 67 - .../StorageTransfer/V1/PosixFilesystem.php | 67 - .../V1/ResumeTransferOperationRequest.php | 67 - .../V1/RunTransferJobRequest.php | 105 -- .../V1/S3CompatibleMetadata.php | 194 --- .../V1/S3CompatibleMetadata/AuthMethod.php | 64 - .../V1/S3CompatibleMetadata/ListApi.php | 64 - .../S3CompatibleMetadata/NetworkProtocol.php | 66 - .../V1/S3CompatibleMetadata/RequestModel.php | 66 - .../Cloud/StorageTransfer/V1/Schedule.php | 441 ------- .../StorageTransfer/V1/TransferCounters.php | 815 ------------ .../Cloud/StorageTransfer/V1/TransferJob.php | 724 ----------- .../StorageTransfer/V1/TransferJob/Status.php | 74 -- .../StorageTransfer/V1/TransferManifest.php | 79 -- .../StorageTransfer/V1/TransferOperation.php | 467 ------- .../V1/TransferOperation/Status.php | 99 -- .../StorageTransfer/V1/TransferOptions.php | 261 ---- .../V1/TransferOptions/OverwriteWhen.php | 75 -- .../Cloud/StorageTransfer/V1/TransferSpec.php | 642 --------- .../V1/UpdateAgentPoolRequest.php | 196 --- .../V1/UpdateTransferJobRequest.php | 277 ---- .../create_agent_pool.php | 96 -- .../create_transfer_job.php | 59 - .../delete_agent_pool.php | 68 - .../delete_transfer_job.php | 73 -- .../get_agent_pool.php | 70 - .../get_google_service_account.php | 78 -- .../get_transfer_job.php | 74 -- .../list_agent_pools.php | 75 -- .../list_transfer_jobs.php | 101 -- .../pause_transfer_operation.php | 68 - .../resume_transfer_operation.php | 68 - .../run_transfer_job.php | 86 -- .../update_agent_pool.php | 74 -- .../update_transfer_job.php | 83 -- .../Client/StorageTransferServiceClient.php | 688 ---------- .../v1/src/V1/gapic_metadata.json | 88 -- ...torage_transfer_service_client_config.json | 114 -- ...age_transfer_service_descriptor_config.php | 207 --- ...ge_transfer_service_rest_client_config.php | 225 ---- .../StorageTransferServiceClientTest.php | 1158 ----------------- 93 files changed, 184 insertions(+), 14628 deletions(-) rename {owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer => StorageTransfer/src}/V1/ReplicationSpec.php (100%) delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/GPBMetadata/Google/Storagetransfer/V1/Transfer.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/GPBMetadata/Google/Storagetransfer/V1/TransferTypes.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AgentPool.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AgentPool/BandwidthLimit.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AgentPool/State.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AwsAccessKey.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AwsS3CompatibleData.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AwsS3Data.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AzureBlobStorageData.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AzureCredentials.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/CreateAgentPoolRequest.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/CreateTransferJobRequest.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/DeleteAgentPoolRequest.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/DeleteTransferJobRequest.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ErrorLogEntry.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ErrorSummary.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/EventStream.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GcsData.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GetAgentPoolRequest.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GetGoogleServiceAccountRequest.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GetTransferJobRequest.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GoogleServiceAccount.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/HdfsData.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/HttpData.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ListAgentPoolsRequest.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ListAgentPoolsResponse.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ListTransferJobsRequest.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ListTransferJobsResponse.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/LoggingConfig.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/LoggingConfig/LoggableAction.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/LoggingConfig/LoggableActionState.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/Acl.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/GID.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/KmsKey.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/Mode.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/StorageClass.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/Symlink.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/TemporaryHold.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/TimeCreated.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/UID.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/NotificationConfig.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/NotificationConfig/EventType.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/NotificationConfig/PayloadFormat.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ObjectConditions.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/PauseTransferOperationRequest.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/PosixFilesystem.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ResumeTransferOperationRequest.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/RunTransferJobRequest.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata/AuthMethod.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata/ListApi.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata/NetworkProtocol.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata/RequestModel.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/Schedule.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferCounters.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferJob.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferJob/Status.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferManifest.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferOperation.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferOperation/Status.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferOptions.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferOptions/OverwriteWhen.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferSpec.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/UpdateAgentPoolRequest.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/UpdateTransferJobRequest.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/create_agent_pool.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/create_transfer_job.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/delete_agent_pool.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/delete_transfer_job.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/get_agent_pool.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/get_google_service_account.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/get_transfer_job.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/list_agent_pools.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/list_transfer_jobs.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/pause_transfer_operation.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/resume_transfer_operation.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/run_transfer_job.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/update_agent_pool.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/update_transfer_job.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/src/V1/Client/StorageTransferServiceClient.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/StorageTransfer/v1/src/V1/resources/storage_transfer_service_client_config.json delete mode 100644 owl-bot-staging/StorageTransfer/v1/src/V1/resources/storage_transfer_service_descriptor_config.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/src/V1/resources/storage_transfer_service_rest_client_config.php delete mode 100644 owl-bot-staging/StorageTransfer/v1/tests/Unit/V1/Client/StorageTransferServiceClientTest.php diff --git a/StorageTransfer/metadata/V1/Transfer.php b/StorageTransfer/metadata/V1/Transfer.php index 97a74f5c6dce..1ff0e3450656 100644 --- a/StorageTransfer/metadata/V1/Transfer.php +++ b/StorageTransfer/metadata/V1/Transfer.php @@ -23,7 +23,7 @@ public static function initOnce() { \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); $pool->internalAddGeneratedFile( ' -" +" (google/storagetransfer/v1/transfer.protogoogle.storagetransfer.v1google/api/client.protogoogle/api/field_behavior.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto.google/storagetransfer/v1/transfer_types.proto"9 GetGoogleServiceAccountRequest @@ -102,8 +102,8 @@ public static function initOnce() { GetAgentPool..google.storagetransfer.v1.GetAgentPoolRequest$.google.storagetransfer.v1.AgentPool"1Aname$"/v1/{name=projects/*/agentPools/*} ListAgentPools0.google.storagetransfer.v1.ListAgentPoolsRequest1.google.storagetransfer.v1.ListAgentPoolsResponse";A project_id(&/v1/projects/{project_id=*}/agentPools -DeleteAgentPool1.google.storagetransfer.v1.DeleteAgentPoolRequest.google.protobuf.Empty"1Aname$*"/v1/{name=projects/*/agentPools/*}RAstoragetransfer.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB -#com.google.storagetransfer.v1.protoB TransferProtoZMcloud.google.com/go/storagetransfer/apiv1/storagetransferpb;storagetransferpbGoogle.Cloud.StorageTransfer.V1Google\\Cloud\\StorageTransfer\\V1"Google::Cloud::StorageTransfer::V1bproto3' +DeleteAgentPool1.google.storagetransfer.v1.DeleteAgentPoolRequest.google.protobuf.Empty"1Aname$*"/v1/{name=projects/*/agentPools/*}RAstoragetransfer.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB +#com.google.storagetransfer.v1.protoB TransferProtoZMcloud.google.com/go/storagetransfer/apiv1/storagetransferpb;storagetransferpbGoogle.Cloud.StorageTransfer.V1Google\\Cloud\\StorageTransfer\\V1"Google::Cloud::StorageTransfer::V1bproto3' , true); static::$is_initialized = true; diff --git a/StorageTransfer/metadata/V1/TransferTypes.php b/StorageTransfer/metadata/V1/TransferTypes.php index 120c424a099b5abc02951e4accf72f15d3591f64..6aab14b3905a6aa63025b7c1c4bbc250a18787b1 100644 GIT binary patch delta 200 zcmZ1)vM78*E;G{;|IPW#8wG^7GjZ_;r55C5CMT9;=H~?$q$W>p6tELv5VGdtO;0Y4 zPf09Ej4#g2%a&l8EFhrC$T<0;kQh6&0;2}Ek@n<^GSZVdg;g0@ChH3u$T;zGaYNMS zmlh?bI&pJx!nJRf7dgt#w2W=?GwC)_7cPM!gr)JtKwBjQC;JO1awEBAa=)6)=4P2h X9`-kkT*}G$xnSGaG?ORiXzm06bqzm) delta 60 zcmV-C0K@;HSEW?2Z36=5OtWtTu@JLb6~qSu;02Q)9fp$>C>OH>9$^dz?*R%UV{dJf S!4?~nhALwN_yGZv=_v} diff --git a/StorageTransfer/samples/V1/StorageTransferServiceClient/list_transfer_jobs.php b/StorageTransfer/samples/V1/StorageTransferServiceClient/list_transfer_jobs.php index 7e1045c83f8d..86751fc3fd08 100644 --- a/StorageTransfer/samples/V1/StorageTransferServiceClient/list_transfer_jobs.php +++ b/StorageTransfer/samples/V1/StorageTransferServiceClient/list_transfer_jobs.php @@ -33,17 +33,32 @@ * Lists transfer jobs. * * @param string $filter A list of query parameters specified as JSON text in the form of: - * `{"projectId":"my_project_id", + * + * ``` + * { + * "projectId":"my_project_id", * "jobNames":["jobid1","jobid2",...], - * "jobStatuses":["status1","status2",...]}` + * "jobStatuses":["status1","status2",...], + * "dataBackend":"QUERY_REPLICATION_CONFIGS", + * "sourceBucket":"source-bucket-name", + * "sinkBucket":"sink-bucket-name", + * } + * ``` + * + * The JSON formatting in the example is for display only; provide the + * query parameters without spaces or line breaks. * - * Since `jobNames` and `jobStatuses` support multiple values, their values - * must be specified with array notation. `projectId` is required. - * `jobNames` and `jobStatuses` are optional. The valid values for - * `jobStatuses` are case-insensitive: - * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED], - * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], and - * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED]. + * * `projectId` is required. + * * Since `jobNames` and `jobStatuses` support multiple values, their values + * must be specified with array notation. `jobNames` and `jobStatuses` are + * optional. Valid values are case-insensitive: + * * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED] + * * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED] + * * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] + * * Specify `"dataBackend":"QUERY_REPLICATION_CONFIGS"` to return a list of + * cross-bucket replication jobs. + * * Limit the results to jobs from a particular bucket with `sourceBucket` + * and/or to a particular bucket with `sinkBucket`. */ function list_transfer_jobs_sample(string $filter): void { diff --git a/StorageTransfer/src/V1/HttpData.php b/StorageTransfer/src/V1/HttpData.php index add9daed9214..6416983f6269 100644 --- a/StorageTransfer/src/V1/HttpData.php +++ b/StorageTransfer/src/V1/HttpData.php @@ -9,33 +9,33 @@ use Google\Protobuf\Internal\GPBUtil; /** - * An HttpData resource specifies a list of objects on the web to be transferred - * over HTTP. The information of the objects to be transferred is contained in - * a file referenced by a URL. The first line in the file must be - * `"TsvHttpData-1.0"`, which specifies the format of the file. Subsequent - * lines specify the information of the list of objects, one object per list - * entry. Each entry has the following tab-delimited fields: - * * **HTTP URL** — The location of the object. - * * **Length** — The size of the object in bytes. - * * **MD5** — The base64-encoded MD5 hash of the object. - * For an example of a valid TSV file, see - * [Transferring data from - * URLs](https://cloud.google.com/storage-transfer/docs/create-url-list). - * When transferring data based on a URL list, keep the following in mind: + * An HttpData resource specifies a list of objects on the web to be + * transferred over HTTP. The information of the objects to be transferred is + * contained in a file referenced by a URL. The first line in the file must be + * `"TsvHttpData-1.0"`, which specifies the format of the file. Subsequent + * lines specify the information of the list of objects, one object per list + * entry. Each entry has the following tab-delimited fields: + * * **HTTP URL** — The location of the object. + * * **Length** — The size of the object in bytes. + * * **MD5** — The base64-encoded MD5 hash of the object. + * For an example of a valid TSV file, see + * [Transferring data from + * URLs](https://cloud.google.com/storage-transfer/docs/create-url-list). + * When transferring data based on a URL list, keep the following in mind: * * When an object located at `http(s)://hostname:port/` is - * transferred to a data sink, the name of the object at the data sink is + * transferred to a data sink, the name of the object at the data sink is * `/`. * * If the specified size of an object does not match the actual size of the - * object fetched, the object is not transferred. + * object fetched, the object is not transferred. * * If the specified MD5 does not match the MD5 computed from the transferred - * bytes, the object transfer fails. + * bytes, the object transfer fails. * * Ensure that each URL you specify is publicly accessible. For - * example, in Cloud Storage you can - * [share an object publicly] - * (/storage/docs/cloud-console#_sharingdata) and get a link to it. + * example, in Cloud Storage you can + * [share an object publicly] + * (/storage/docs/cloud-console#_sharingdata) and get a link to it. * * Storage Transfer Service obeys `robots.txt` rules and requires the source - * HTTP server to support `Range` requests and to return a `Content-Length` - * header in each response. + * HTTP server to support `Range` requests and to return a `Content-Length` + * header in each response. * * [ObjectConditions][google.storagetransfer.v1.ObjectConditions] have no * effect when filtering objects to transfer. * diff --git a/StorageTransfer/src/V1/ListTransferJobsRequest.php b/StorageTransfer/src/V1/ListTransferJobsRequest.php index 1709bfb490ac..b8cd19e45d64 100644 --- a/StorageTransfer/src/V1/ListTransferJobsRequest.php +++ b/StorageTransfer/src/V1/ListTransferJobsRequest.php @@ -18,16 +18,29 @@ class ListTransferJobsRequest extends \Google\Protobuf\Internal\Message { /** * Required. A list of query parameters specified as JSON text in the form of: - * `{"projectId":"my_project_id", - * "jobNames":["jobid1","jobid2",...], - * "jobStatuses":["status1","status2",...]}` - * Since `jobNames` and `jobStatuses` support multiple values, their values - * must be specified with array notation. `projectId` is required. - * `jobNames` and `jobStatuses` are optional. The valid values for - * `jobStatuses` are case-insensitive: - * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED], - * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], and - * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED]. + * ``` + * { + * "projectId":"my_project_id", + * "jobNames":["jobid1","jobid2",...], + * "jobStatuses":["status1","status2",...], + * "dataBackend":"QUERY_REPLICATION_CONFIGS", + * "sourceBucket":"source-bucket-name", + * "sinkBucket":"sink-bucket-name", + * } + * ``` + * The JSON formatting in the example is for display only; provide the + * query parameters without spaces or line breaks. + * * `projectId` is required. + * * Since `jobNames` and `jobStatuses` support multiple values, their values + * must be specified with array notation. `jobNames` and `jobStatuses` are + * optional. Valid values are case-insensitive: + * * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED] + * * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED] + * * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] + * * Specify `"dataBackend":"QUERY_REPLICATION_CONFIGS"` to return a list of + * cross-bucket replication jobs. + * * Limit the results to jobs from a particular bucket with `sourceBucket` + * and/or to a particular bucket with `sinkBucket`. * * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; */ @@ -53,16 +66,29 @@ class ListTransferJobsRequest extends \Google\Protobuf\Internal\Message * * @type string $filter * Required. A list of query parameters specified as JSON text in the form of: - * `{"projectId":"my_project_id", - * "jobNames":["jobid1","jobid2",...], - * "jobStatuses":["status1","status2",...]}` - * Since `jobNames` and `jobStatuses` support multiple values, their values - * must be specified with array notation. `projectId` is required. - * `jobNames` and `jobStatuses` are optional. The valid values for - * `jobStatuses` are case-insensitive: - * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED], - * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], and - * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED]. + * ``` + * { + * "projectId":"my_project_id", + * "jobNames":["jobid1","jobid2",...], + * "jobStatuses":["status1","status2",...], + * "dataBackend":"QUERY_REPLICATION_CONFIGS", + * "sourceBucket":"source-bucket-name", + * "sinkBucket":"sink-bucket-name", + * } + * ``` + * The JSON formatting in the example is for display only; provide the + * query parameters without spaces or line breaks. + * * `projectId` is required. + * * Since `jobNames` and `jobStatuses` support multiple values, their values + * must be specified with array notation. `jobNames` and `jobStatuses` are + * optional. Valid values are case-insensitive: + * * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED] + * * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED] + * * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] + * * Specify `"dataBackend":"QUERY_REPLICATION_CONFIGS"` to return a list of + * cross-bucket replication jobs. + * * Limit the results to jobs from a particular bucket with `sourceBucket` + * and/or to a particular bucket with `sinkBucket`. * @type int $page_size * The list page size. The max allowed value is 256. * @type string $page_token @@ -76,16 +102,29 @@ public function __construct($data = NULL) { /** * Required. A list of query parameters specified as JSON text in the form of: - * `{"projectId":"my_project_id", - * "jobNames":["jobid1","jobid2",...], - * "jobStatuses":["status1","status2",...]}` - * Since `jobNames` and `jobStatuses` support multiple values, their values - * must be specified with array notation. `projectId` is required. - * `jobNames` and `jobStatuses` are optional. The valid values for - * `jobStatuses` are case-insensitive: - * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED], - * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], and - * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED]. + * ``` + * { + * "projectId":"my_project_id", + * "jobNames":["jobid1","jobid2",...], + * "jobStatuses":["status1","status2",...], + * "dataBackend":"QUERY_REPLICATION_CONFIGS", + * "sourceBucket":"source-bucket-name", + * "sinkBucket":"sink-bucket-name", + * } + * ``` + * The JSON formatting in the example is for display only; provide the + * query parameters without spaces or line breaks. + * * `projectId` is required. + * * Since `jobNames` and `jobStatuses` support multiple values, their values + * must be specified with array notation. `jobNames` and `jobStatuses` are + * optional. Valid values are case-insensitive: + * * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED] + * * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED] + * * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] + * * Specify `"dataBackend":"QUERY_REPLICATION_CONFIGS"` to return a list of + * cross-bucket replication jobs. + * * Limit the results to jobs from a particular bucket with `sourceBucket` + * and/or to a particular bucket with `sinkBucket`. * * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string @@ -97,16 +136,29 @@ public function getFilter() /** * Required. A list of query parameters specified as JSON text in the form of: - * `{"projectId":"my_project_id", - * "jobNames":["jobid1","jobid2",...], - * "jobStatuses":["status1","status2",...]}` - * Since `jobNames` and `jobStatuses` support multiple values, their values - * must be specified with array notation. `projectId` is required. - * `jobNames` and `jobStatuses` are optional. The valid values for - * `jobStatuses` are case-insensitive: - * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED], - * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], and - * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED]. + * ``` + * { + * "projectId":"my_project_id", + * "jobNames":["jobid1","jobid2",...], + * "jobStatuses":["status1","status2",...], + * "dataBackend":"QUERY_REPLICATION_CONFIGS", + * "sourceBucket":"source-bucket-name", + * "sinkBucket":"sink-bucket-name", + * } + * ``` + * The JSON formatting in the example is for display only; provide the + * query parameters without spaces or line breaks. + * * `projectId` is required. + * * Since `jobNames` and `jobStatuses` support multiple values, their values + * must be specified with array notation. `jobNames` and `jobStatuses` are + * optional. Valid values are case-insensitive: + * * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED] + * * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED] + * * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] + * * Specify `"dataBackend":"QUERY_REPLICATION_CONFIGS"` to return a list of + * cross-bucket replication jobs. + * * Limit the results to jobs from a particular bucket with `sourceBucket` + * and/or to a particular bucket with `sinkBucket`. * * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ReplicationSpec.php b/StorageTransfer/src/V1/ReplicationSpec.php similarity index 100% rename from owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ReplicationSpec.php rename to StorageTransfer/src/V1/ReplicationSpec.php diff --git a/StorageTransfer/src/V1/TransferJob.php b/StorageTransfer/src/V1/TransferJob.php index efc91b2f5ac8..b2bbc2e9c523 100644 --- a/StorageTransfer/src/V1/TransferJob.php +++ b/StorageTransfer/src/V1/TransferJob.php @@ -59,6 +59,12 @@ class TransferJob extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.storagetransfer.v1.TransferSpec transfer_spec = 4; */ protected $transfer_spec = null; + /** + * Replication specification. + * + * Generated from protobuf field .google.storagetransfer.v1.ReplicationSpec replication_spec = 17; + */ + protected $replication_spec = null; /** * Notification configuration. * @@ -159,6 +165,8 @@ class TransferJob extends \Google\Protobuf\Internal\Message * The ID of the Google Cloud project that owns the job. * @type \Google\Cloud\StorageTransfer\V1\TransferSpec $transfer_spec * Transfer specification. + * @type \Google\Cloud\StorageTransfer\V1\ReplicationSpec $replication_spec + * Replication specification. * @type \Google\Cloud\StorageTransfer\V1\NotificationConfig $notification_config * Notification configuration. * @type \Google\Cloud\StorageTransfer\V1\LoggingConfig $logging_config @@ -348,6 +356,42 @@ public function setTransferSpec($var) return $this; } + /** + * Replication specification. + * + * Generated from protobuf field .google.storagetransfer.v1.ReplicationSpec replication_spec = 17; + * @return \Google\Cloud\StorageTransfer\V1\ReplicationSpec|null + */ + public function getReplicationSpec() + { + return $this->replication_spec; + } + + public function hasReplicationSpec() + { + return isset($this->replication_spec); + } + + public function clearReplicationSpec() + { + unset($this->replication_spec); + } + + /** + * Replication specification. + * + * Generated from protobuf field .google.storagetransfer.v1.ReplicationSpec replication_spec = 17; + * @param \Google\Cloud\StorageTransfer\V1\ReplicationSpec $var + * @return $this + */ + public function setReplicationSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\ReplicationSpec::class); + $this->replication_spec = $var; + + return $this; + } + /** * Notification configuration. * diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/GPBMetadata/Google/Storagetransfer/V1/Transfer.php b/owl-bot-staging/StorageTransfer/v1/proto/src/GPBMetadata/Google/Storagetransfer/V1/Transfer.php deleted file mode 100644 index 1ff0e3450656..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/GPBMetadata/Google/Storagetransfer/V1/Transfer.php +++ /dev/null @@ -1,112 +0,0 @@ -internalAddGeneratedFile( - ' -" -(google/storagetransfer/v1/transfer.protogoogle.storagetransfer.v1google/api/client.protogoogle/api/field_behavior.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto.google/storagetransfer/v1/transfer_types.proto"9 -GetGoogleServiceAccountRequest - -project_id ( BA"] -CreateTransferJobRequestA - transfer_job ( 2&.google.storagetransfer.v1.TransferJobBA" -UpdateTransferJobRequest -job_name ( BA - -project_id ( BAA - transfer_job ( 2&.google.storagetransfer.v1.TransferJobBAB -update_transfer_job_field_mask ( 2.google.protobuf.FieldMask"G -GetTransferJobRequest -job_name ( BA - -project_id ( BA"J -DeleteTransferJobRequest -job_name ( BA - -project_id ( BA"U -ListTransferJobsRequest -filter ( BA - page_size ( - -page_token ( "r -ListTransferJobsResponse= - transfer_jobs ( 2&.google.storagetransfer.v1.TransferJob -next_page_token ( "2 -PauseTransferOperationRequest -name ( BA"3 -ResumeTransferOperationRequest -name ( BA"G -RunTransferJobRequest -job_name ( BA - -project_id ( BA" -CreateAgentPoolRequest - -project_id ( BA= - -agent_pool ( 2$.google.storagetransfer.v1.AgentPoolBA - agent_pool_id ( BA" -UpdateAgentPoolRequest= - -agent_pool ( 2$.google.storagetransfer.v1.AgentPoolBA/ - update_mask ( 2.google.protobuf.FieldMask"( -GetAgentPoolRequest -name ( BA"+ -DeleteAgentPoolRequest -name ( BA"g -ListAgentPoolsRequest - -project_id ( BA -filter (  - page_size ( - -page_token ( "l -ListAgentPoolsResponse9 - agent_pools ( 2$.google.storagetransfer.v1.AgentPool -next_page_token ( 2 -StorageTransferService -GetGoogleServiceAccount9.google.storagetransfer.v1.GetGoogleServiceAccountRequest/.google.storagetransfer.v1.GoogleServiceAccount".(&/v1/googleServiceAccounts/{project_id} -CreateTransferJob3.google.storagetransfer.v1.CreateTransferJobRequest&.google.storagetransfer.v1.TransferJob"& "/v1/transferJobs: transfer_job -UpdateTransferJob3.google.storagetransfer.v1.UpdateTransferJobRequest&.google.storagetransfer.v1.TransferJob")#2/v1/{job_name=transferJobs/**}:* -GetTransferJob0.google.storagetransfer.v1.GetTransferJobRequest&.google.storagetransfer.v1.TransferJob"& /v1/{job_name=transferJobs/**} -ListTransferJobs2.google.storagetransfer.v1.ListTransferJobsRequest3.google.storagetransfer.v1.ListTransferJobsResponse"/v1/transferJobs -PauseTransferOperation8.google.storagetransfer.v1.PauseTransferOperationRequest.google.protobuf.Empty"1+"&/v1/{name=transferOperations/**}:pause:* -ResumeTransferOperation9.google.storagetransfer.v1.ResumeTransferOperationRequest.google.protobuf.Empty"2,"\'/v1/{name=transferOperations/**}:resume:* -RunTransferJob0.google.storagetransfer.v1.RunTransferJobRequest.google.longrunning.Operation"ZA* -google.protobuf.EmptyTransferOperation\'""/v1/{job_name=transferJobs/**}:run:* -DeleteTransferJob3.google.storagetransfer.v1.DeleteTransferJobRequest.google.protobuf.Empty"& */v1/{job_name=transferJobs/**} -CreateAgentPool1.google.storagetransfer.v1.CreateAgentPoolRequest$.google.storagetransfer.v1.AgentPool"`A#project_id,agent_pool,agent_pool_id4"&/v1/projects/{project_id=*}/agentPools: -agent_pool -UpdateAgentPool1.google.storagetransfer.v1.UpdateAgentPoolRequest$.google.storagetransfer.v1.AgentPool"ZAagent_pool,update_mask;2-/v1/{agent_pool.name=projects/*/agentPools/*}: -agent_pool - GetAgentPool..google.storagetransfer.v1.GetAgentPoolRequest$.google.storagetransfer.v1.AgentPool"1Aname$"/v1/{name=projects/*/agentPools/*} -ListAgentPools0.google.storagetransfer.v1.ListAgentPoolsRequest1.google.storagetransfer.v1.ListAgentPoolsResponse";A -project_id(&/v1/projects/{project_id=*}/agentPools -DeleteAgentPool1.google.storagetransfer.v1.DeleteAgentPoolRequest.google.protobuf.Empty"1Aname$*"/v1/{name=projects/*/agentPools/*}RAstoragetransfer.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB -#com.google.storagetransfer.v1.protoB TransferProtoZMcloud.google.com/go/storagetransfer/apiv1/storagetransferpb;storagetransferpbGoogle.Cloud.StorageTransfer.V1Google\\Cloud\\StorageTransfer\\V1"Google::Cloud::StorageTransfer::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/GPBMetadata/Google/Storagetransfer/V1/TransferTypes.php b/owl-bot-staging/StorageTransfer/v1/proto/src/GPBMetadata/Google/Storagetransfer/V1/TransferTypes.php deleted file mode 100644 index 6aab14b3905a6aa63025b7c1c4bbc250a18787b1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 11170 zcmbta&vV;Ib{+|`EImq;1j{z9@z^x%osnl|shCc7r{wX>f+Qr-qDT%w+0m9#2t+m| zj6nhcK-t`>sZ^yZxuj|@x#X5pa>yySoN`J|+2j5LIi&WmwU=CS&U@Ve1wt|;ReZ6C ze(!bn>-Xb(ulwt7-4hoc=eOB_d1k=6`J+)jIAM9$a{{O1*!iPjugAQ6$LYJ4&AdWB zUuop)jdotERNIe`)pv$ohi&GM9p~6)8-Cz;<}nLAbKoQ6#_6+-=x-w!xy&zc(EtOp z&wSVHu>5wjw8sLoYX;`wHkWd!Pf9s_{pjZ|?%}vucT>#&DiX1E^fS?`&jlkyTO6-U_n#K;UE`8nK* zEj!vu?gpQ0?cBo2A-K27U%~1m;}PpQ9?Q*M#;N=gZfzG&;@hjFFXVZ|ihFk)-s{*Wntk*1b}Kb20SYS|cl)zf=dxBbeI>0+(;#Hq6-;y4lbR0|u9p2c8 z-SRM)INnI?RLP;VZco@>bbLI1DE~GEx47+;5$vD?qgh>IMG-#_Qy9_a*r4k=m=A>A zirr>m)?>#QJGfWP%Uh7~pBw!U@o>FliW@2V)t{d&C<01&?n|)PMJGaEcTO#I3FUup z!0JV`asx8vFgT$(PaF{~v&GG8&R9@U1Wu009@Dq1Zu<)@%b4!^Fp+WTtF*lFl(tzziygPMjD--p~JT~ozfh|y`~ zdss?p5cg8o+HV@IU8C7*v>W9{a_Tj>bBh5} z&1zy>w_u5nG)k|ua$7fE7g6XkEW|&etiO{m=pSP?C&VqUzzokO+$n_%uEIjs@?F~; zi9{o^$~SO>&^QZCY{JiR^JN3y!re}l1dS8jab*7 zKz8yAK_M>H=pVU0k6x0p4LA4-FxafG`0Y9<(8(ltMzSERR(VIUuc%o704J6RuFIFaHtxCZRHaYu4Zxi#I}4Z~2zz)RVK}fb_>9Tupy%Xg@H9b&Nw;r^n#M4DSg?&j1CK9rauc#=t9f^V;EzB=w)j=b z`6YH#Xhhq2gZy#@mZQLKIAYJCO{7^@6x2g4Df_TEDfR)ZHC}72H?1lj_?sQAo;dYI zn6Ff~wzQU3Z{xAg!;QLz^myn1vuf>)dY~^$%D>FPLbQC{WgYniEFO1!gJ%)0aN2&R zsHAK^L~c7D$r{2AO1UxiMb4hK(?pU+F)v~1Yz@4Xz>ocEtC*5YAQO(mgerC+BnYVd zBxN5w&r^2anUcSSXcn5DW#>-~m|x zucG^`YZ1ofTeh9Bj9TX6u40zch^|&dTrm)OhBaI0f@v7`T$zWSJT5UJPZqUJntey^ z6~#MT%~%TJc&mqyDYwM8leU^j%wEWXb;O-0kWok$L6&E^6%;m)d3}`}*ocK-J}T2_ zDFgGuhLEJR2$`5cmF~mZhc&PK>ohF2n2XIdUeNNW@&EGJkIn}j;jC9V-KmRDSNLk0 zKCg7TBKTe7bd#!#t6BM<3@jz$x?F~v{-|$9sV!S9rg&R|xu6S9445;7xkJdERyQOi z5X?sPOUKwTA)RH5Y2KdX-mX@Nd5Fv+OJ0Y0Uoe{;oBQJRW>!14T!+Od9P&0WFQU`o zd~yT2=qZ<}i%h8>i$oWD)!xWB!IlCqy3Qs<*v-xJQ~KF81W|(qTU*3U5IZuOyKqZC*sE3Ry9wlgU^*JmcdJbV z538^oeQCBdU2DD85MqA=Gu(V|lj5}6Kis^w(WqQC?CSiyp-ij`TlQ8!Ba zO6>yyK&^I;`5Nqsgm zwmcJK2>$C8wN+V`&X3hKwS{M`Ezg`E!ve0t$8Jz{HaVZ#D(_VBxMvjxi<8!k2(+#3 zHF2x011u_Q$&)|>ON@tyf|YV&;A~fl0kfgyBmeH6ZtQ9Y2^C^x8x5o?4-GS-i%nod zCgu@T{H?PZj|>?gL?*zqp3cD<#U-EdxB#e zBic-VJq>eu=Y(~KHj|&jEkFDl@t)~nzY2XfgupA2<5R=EP{9FF&VGqK?uZFHPJ%_G z(eo@=7_A7&JhV7HBp>nkpDEs%n1D3Z=vB;-ya7ujH_jlk2PW zY3*v|AEqFqog$ji0}NRGaorwk=D&cuj3`hwL=tLm0@fcq27?7eG=Ybw66 zPz5Oxlz*B<^9ipTUpYtAw>;}pV_eB}!`nYd`iQSb5C@lnt za_&+AI5F>Sj3*{waD|CKf!j7l4Q$goF5T}FKeyloe?kr-XA!%hCDbg=B%QenlL_>!XO2ZZgONB{5Ql6)}QV zYG45Itne-@Q%o~azL01S%D>N^#q%=Vl`zkjAHlt-Z`H$Zcpr7vW#X%q@IvG6(FnDU zS5-*@zC`&6+@F-;4D3-Th>8OO=aQ_zT3k$mhT^d#e*urjlFrs)_-`%O#k;bjk>QU9 z9qwQfYW7hmFol$AT#4$nC$mfWP4$ap1E zq!4it2}C3p%ONFE+=}UXQVJ1}jdLwVGGZrX^w0zmU{l9R!ghS_ykbHMiffYmIVfW( zoRjn+ri`5%750*h*Z!fj4^vV{L*kvy@OBFA^8$0BATP-U_%yo2;$&m7{3a~6s~na4 z5@L!k;`IKIUxfFDHX0eR&?V}b1>~slBk?QNiAF%Q-;T}90kRC;+?{AS7ZM7E88Q01 zM6dj#1o8zbGvmLzaM^(C3hx-n{^qj_yP(}oK!aY9vwS={5+Re>*@dY0C>D`C? zr;v5ck?ojtckJ~|aXFVQzKDX#l~P`zDP(MM5j@H$e=`O1XY(LL$EIt&ZL|-X$pVSs zb4#u3*rGKWO|2y=4t>8|)^xfk!8+oC@h!DVk(VAdT*R)H8ZAVz7=FvJII%opXsQRb zhFUSU8m&FGoq)P?FjH?}fiNZGU$68=9ntIGO0YPYqwyRlewzG+6x~2vb`BHl1^PvI z^D5`Z4&=(2G=g#%BEz#yyEsgfN!g2W(-p4(3}=8ZANmIM6C(s;;G~pn=ykw%kWDP= zA$(kGY;RLiGt@G#11F0D)X!G6PU#O@=_29bf#BD2qj`X;e*?EBMT#~31Rf>jUUXf9 zg)=t-t->=bP7$5C@*g*_90|c^Bg)mrW&MHP~Qm*g+`CA^@%{1r<%0SMD>?jj|P49r9gPVyGZG;B_c6nM4{s291e_*u*P}Yb>0np>>x>~rPMRySS12Y_hNnK@A2w@ zgFMQ!^U7ad3i6g9Q?1kW?l$&&C>o&|Hr0KdhaQA^QJ9iwAhgdJ!hcZ!x}(`LH9daA z2d0Uy?$L{LU;cUep?HN>DARi!JUaeNHJY;U`q_U*6o-eLgoogle.storagetransfer.v1.AgentPool - */ -class AgentPool extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Specifies a unique string that identifies the agent pool. - * Format: `projects/{project_id}/agentPools/{agent_pool_id}` - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Specifies the client-specified AgentPool description. - * - * Generated from protobuf field string display_name = 3; - */ - protected $display_name = ''; - /** - * Output only. Specifies the state of the AgentPool. - * - * Generated from protobuf field .google.storagetransfer.v1.AgentPool.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Specifies the bandwidth limit details. If this field is unspecified, the - * default value is set as 'No Limit'. - * - * Generated from protobuf field .google.storagetransfer.v1.AgentPool.BandwidthLimit bandwidth_limit = 5; - */ - protected $bandwidth_limit = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Specifies a unique string that identifies the agent pool. - * Format: `projects/{project_id}/agentPools/{agent_pool_id}` - * @type string $display_name - * Specifies the client-specified AgentPool description. - * @type int $state - * Output only. Specifies the state of the AgentPool. - * @type \Google\Cloud\StorageTransfer\V1\AgentPool\BandwidthLimit $bandwidth_limit - * Specifies the bandwidth limit details. If this field is unspecified, the - * default value is set as 'No Limit'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Required. Specifies a unique string that identifies the agent pool. - * Format: `projects/{project_id}/agentPools/{agent_pool_id}` - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Specifies a unique string that identifies the agent pool. - * Format: `projects/{project_id}/agentPools/{agent_pool_id}` - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Specifies the client-specified AgentPool description. - * - * Generated from protobuf field string display_name = 3; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Specifies the client-specified AgentPool description. - * - * Generated from protobuf field string display_name = 3; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. Specifies the state of the AgentPool. - * - * Generated from protobuf field .google.storagetransfer.v1.AgentPool.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Specifies the state of the AgentPool. - * - * Generated from protobuf field .google.storagetransfer.v1.AgentPool.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\StorageTransfer\V1\AgentPool\State::class); - $this->state = $var; - - return $this; - } - - /** - * Specifies the bandwidth limit details. If this field is unspecified, the - * default value is set as 'No Limit'. - * - * Generated from protobuf field .google.storagetransfer.v1.AgentPool.BandwidthLimit bandwidth_limit = 5; - * @return \Google\Cloud\StorageTransfer\V1\AgentPool\BandwidthLimit|null - */ - public function getBandwidthLimit() - { - return $this->bandwidth_limit; - } - - public function hasBandwidthLimit() - { - return isset($this->bandwidth_limit); - } - - public function clearBandwidthLimit() - { - unset($this->bandwidth_limit); - } - - /** - * Specifies the bandwidth limit details. If this field is unspecified, the - * default value is set as 'No Limit'. - * - * Generated from protobuf field .google.storagetransfer.v1.AgentPool.BandwidthLimit bandwidth_limit = 5; - * @param \Google\Cloud\StorageTransfer\V1\AgentPool\BandwidthLimit $var - * @return $this - */ - public function setBandwidthLimit($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\AgentPool\BandwidthLimit::class); - $this->bandwidth_limit = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AgentPool/BandwidthLimit.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AgentPool/BandwidthLimit.php deleted file mode 100644 index efbd0af7ea7f..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AgentPool/BandwidthLimit.php +++ /dev/null @@ -1,74 +0,0 @@ -google.storagetransfer.v1.AgentPool.BandwidthLimit - */ -class BandwidthLimit extends \Google\Protobuf\Internal\Message -{ - /** - * Bandwidth rate in megabytes per second, distributed across all the agents - * in the pool. - * - * Generated from protobuf field int64 limit_mbps = 1; - */ - protected $limit_mbps = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $limit_mbps - * Bandwidth rate in megabytes per second, distributed across all the agents - * in the pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Bandwidth rate in megabytes per second, distributed across all the agents - * in the pool. - * - * Generated from protobuf field int64 limit_mbps = 1; - * @return int|string - */ - public function getLimitMbps() - { - return $this->limit_mbps; - } - - /** - * Bandwidth rate in megabytes per second, distributed across all the agents - * in the pool. - * - * Generated from protobuf field int64 limit_mbps = 1; - * @param int|string $var - * @return $this - */ - public function setLimitMbps($var) - { - GPBUtil::checkInt64($var); - $this->limit_mbps = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BandwidthLimit::class, \Google\Cloud\StorageTransfer\V1\AgentPool_BandwidthLimit::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AgentPool/State.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AgentPool/State.php deleted file mode 100644 index 3677f8fd9b0d..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AgentPool/State.php +++ /dev/null @@ -1,74 +0,0 @@ -google.storagetransfer.v1.AgentPool.State - */ -class State -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * This is an initialization state. During this stage, resources are - * allocated for the AgentPool. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * Determines that the AgentPool is created for use. At this state, Agents - * can join the AgentPool and participate in the transfer jobs in that pool. - * - * Generated from protobuf enum CREATED = 2; - */ - const CREATED = 2; - /** - * Determines that the AgentPool deletion has been initiated, and all the - * resources are scheduled to be cleaned up and freed. - * - * Generated from protobuf enum DELETING = 3; - */ - const DELETING = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::CREATED => 'CREATED', - self::DELETING => 'DELETING', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\StorageTransfer\V1\AgentPool_State::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AwsAccessKey.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AwsAccessKey.php deleted file mode 100644 index 9a5486d994d5..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AwsAccessKey.php +++ /dev/null @@ -1,109 +0,0 @@ -google.storagetransfer.v1.AwsAccessKey - */ -class AwsAccessKey extends \Google\Protobuf\Internal\Message -{ - /** - * Required. AWS access key ID. - * - * Generated from protobuf field string access_key_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $access_key_id = ''; - /** - * Required. AWS secret access key. This field is not returned in RPC - * responses. - * - * Generated from protobuf field string secret_access_key = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $secret_access_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $access_key_id - * Required. AWS access key ID. - * @type string $secret_access_key - * Required. AWS secret access key. This field is not returned in RPC - * responses. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Required. AWS access key ID. - * - * Generated from protobuf field string access_key_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAccessKeyId() - { - return $this->access_key_id; - } - - /** - * Required. AWS access key ID. - * - * Generated from protobuf field string access_key_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAccessKeyId($var) - { - GPBUtil::checkString($var, True); - $this->access_key_id = $var; - - return $this; - } - - /** - * Required. AWS secret access key. This field is not returned in RPC - * responses. - * - * Generated from protobuf field string secret_access_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSecretAccessKey() - { - return $this->secret_access_key; - } - - /** - * Required. AWS secret access key. This field is not returned in RPC - * responses. - * - * Generated from protobuf field string secret_access_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSecretAccessKey($var) - { - GPBUtil::checkString($var, True); - $this->secret_access_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AwsS3CompatibleData.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AwsS3CompatibleData.php deleted file mode 100644 index 18827d4e76a6..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AwsS3CompatibleData.php +++ /dev/null @@ -1,227 +0,0 @@ -google.storagetransfer.v1.AwsS3CompatibleData - */ -class AwsS3CompatibleData extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Specifies the name of the bucket. - * - * Generated from protobuf field string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $bucket_name = ''; - /** - * Specifies the root path to transfer objects. - * Must be an empty string or full path name that ends with a '/'. This - * field is treated as an object prefix. As such, it should generally not - * begin with a '/'. - * - * Generated from protobuf field string path = 2; - */ - protected $path = ''; - /** - * Required. Specifies the endpoint of the storage service. - * - * Generated from protobuf field string endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $endpoint = ''; - /** - * Specifies the region to sign requests with. This can be left blank if - * requests should be signed with an empty region. - * - * Generated from protobuf field string region = 5; - */ - protected $region = ''; - protected $data_provider; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $bucket_name - * Required. Specifies the name of the bucket. - * @type string $path - * Specifies the root path to transfer objects. - * Must be an empty string or full path name that ends with a '/'. This - * field is treated as an object prefix. As such, it should generally not - * begin with a '/'. - * @type string $endpoint - * Required. Specifies the endpoint of the storage service. - * @type string $region - * Specifies the region to sign requests with. This can be left blank if - * requests should be signed with an empty region. - * @type \Google\Cloud\StorageTransfer\V1\S3CompatibleMetadata $s3_metadata - * A S3 compatible metadata. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Required. Specifies the name of the bucket. - * - * Generated from protobuf field string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBucketName() - { - return $this->bucket_name; - } - - /** - * Required. Specifies the name of the bucket. - * - * Generated from protobuf field string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBucketName($var) - { - GPBUtil::checkString($var, True); - $this->bucket_name = $var; - - return $this; - } - - /** - * Specifies the root path to transfer objects. - * Must be an empty string or full path name that ends with a '/'. This - * field is treated as an object prefix. As such, it should generally not - * begin with a '/'. - * - * Generated from protobuf field string path = 2; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Specifies the root path to transfer objects. - * Must be an empty string or full path name that ends with a '/'. This - * field is treated as an object prefix. As such, it should generally not - * begin with a '/'. - * - * Generated from protobuf field string path = 2; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Required. Specifies the endpoint of the storage service. - * - * Generated from protobuf field string endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEndpoint() - { - return $this->endpoint; - } - - /** - * Required. Specifies the endpoint of the storage service. - * - * Generated from protobuf field string endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->endpoint = $var; - - return $this; - } - - /** - * Specifies the region to sign requests with. This can be left blank if - * requests should be signed with an empty region. - * - * Generated from protobuf field string region = 5; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * Specifies the region to sign requests with. This can be left blank if - * requests should be signed with an empty region. - * - * Generated from protobuf field string region = 5; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - - /** - * A S3 compatible metadata. - * - * Generated from protobuf field .google.storagetransfer.v1.S3CompatibleMetadata s3_metadata = 4; - * @return \Google\Cloud\StorageTransfer\V1\S3CompatibleMetadata|null - */ - public function getS3Metadata() - { - return $this->readOneof(4); - } - - public function hasS3Metadata() - { - return $this->hasOneof(4); - } - - /** - * A S3 compatible metadata. - * - * Generated from protobuf field .google.storagetransfer.v1.S3CompatibleMetadata s3_metadata = 4; - * @param \Google\Cloud\StorageTransfer\V1\S3CompatibleMetadata $var - * @return $this - */ - public function setS3Metadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\S3CompatibleMetadata::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getDataProvider() - { - return $this->whichOneof("data_provider"); - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AwsS3Data.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AwsS3Data.php deleted file mode 100644 index 21d2a93d42e6..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AwsS3Data.php +++ /dev/null @@ -1,445 +0,0 @@ -google.storagetransfer.v1.AwsS3Data - */ -class AwsS3Data extends \Google\Protobuf\Internal\Message -{ - /** - * Required. S3 Bucket name (see - * [Creating a - * bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-location-example.html)). - * - * Generated from protobuf field string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $bucket_name = ''; - /** - * Input only. AWS access key used to sign the API requests to the AWS S3 - * bucket. Permissions on the bucket must be granted to the access ID of the - * AWS access key. - * For information on our data retention policy for user credentials, see - * [User credentials](/storage-transfer/docs/data-retention#user-credentials). - * - * Generated from protobuf field .google.storagetransfer.v1.AwsAccessKey aws_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $aws_access_key = null; - /** - * Root path to transfer objects. - * Must be an empty string or full path name that ends with a '/'. This field - * is treated as an object prefix. As such, it should generally not begin with - * a '/'. - * - * Generated from protobuf field string path = 3; - */ - protected $path = ''; - /** - * The Amazon Resource Name (ARN) of the role to support temporary - * credentials via `AssumeRoleWithWebIdentity`. For more information about - * ARNs, see [IAM - * ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns). - * When a role ARN is provided, Transfer Service fetches temporary - * credentials for the session using a `AssumeRoleWithWebIdentity` call for - * the provided role using the - * [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] for - * this project. - * - * Generated from protobuf field string role_arn = 4; - */ - protected $role_arn = ''; - /** - * Optional. The CloudFront distribution domain name pointing to this bucket, - * to use when fetching. - * See - * [Transfer from S3 via - * CloudFront](https://cloud.google.com/storage-transfer/docs/s3-cloudfront) - * for more information. - * Format: `https://{id}.cloudfront.net` or any valid custom domain. Must - * begin with `https://`. - * - * Generated from protobuf field string cloudfront_domain = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $cloudfront_domain = ''; - /** - * Optional. The Resource name of a secret in Secret Manager. - * AWS credentials must be stored in Secret Manager in JSON format: - * { - * "access_key_id": "ACCESS_KEY_ID", - * "secret_access_key": "SECRET_ACCESS_KEY" - * } - * [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must - * be granted `roles/secretmanager.secretAccessor` for the resource. - * See [Configure access to a source: Amazon S3] - * (https://cloud.google.com/storage-transfer/docs/source-amazon-s3#secret_manager) - * for more information. - * If `credentials_secret` is specified, do not specify - * [role_arn][google.storagetransfer.v1.AwsS3Data.role_arn] or - * [aws_access_key][google.storagetransfer.v1.AwsS3Data.aws_access_key]. - * Format: `projects/{project_number}/secrets/{secret_name}` - * - * Generated from protobuf field string credentials_secret = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $credentials_secret = ''; - protected $private_network; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $bucket_name - * Required. S3 Bucket name (see - * [Creating a - * bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-location-example.html)). - * @type \Google\Cloud\StorageTransfer\V1\AwsAccessKey $aws_access_key - * Input only. AWS access key used to sign the API requests to the AWS S3 - * bucket. Permissions on the bucket must be granted to the access ID of the - * AWS access key. - * For information on our data retention policy for user credentials, see - * [User credentials](/storage-transfer/docs/data-retention#user-credentials). - * @type string $path - * Root path to transfer objects. - * Must be an empty string or full path name that ends with a '/'. This field - * is treated as an object prefix. As such, it should generally not begin with - * a '/'. - * @type string $role_arn - * The Amazon Resource Name (ARN) of the role to support temporary - * credentials via `AssumeRoleWithWebIdentity`. For more information about - * ARNs, see [IAM - * ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns). - * When a role ARN is provided, Transfer Service fetches temporary - * credentials for the session using a `AssumeRoleWithWebIdentity` call for - * the provided role using the - * [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] for - * this project. - * @type string $cloudfront_domain - * Optional. The CloudFront distribution domain name pointing to this bucket, - * to use when fetching. - * See - * [Transfer from S3 via - * CloudFront](https://cloud.google.com/storage-transfer/docs/s3-cloudfront) - * for more information. - * Format: `https://{id}.cloudfront.net` or any valid custom domain. Must - * begin with `https://`. - * @type string $credentials_secret - * Optional. The Resource name of a secret in Secret Manager. - * AWS credentials must be stored in Secret Manager in JSON format: - * { - * "access_key_id": "ACCESS_KEY_ID", - * "secret_access_key": "SECRET_ACCESS_KEY" - * } - * [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must - * be granted `roles/secretmanager.secretAccessor` for the resource. - * See [Configure access to a source: Amazon S3] - * (https://cloud.google.com/storage-transfer/docs/source-amazon-s3#secret_manager) - * for more information. - * If `credentials_secret` is specified, do not specify - * [role_arn][google.storagetransfer.v1.AwsS3Data.role_arn] or - * [aws_access_key][google.storagetransfer.v1.AwsS3Data.aws_access_key]. - * Format: `projects/{project_number}/secrets/{secret_name}` - * @type bool $managed_private_network - * Egress bytes over a Google-managed private network. - * This network is shared between other users of Storage Transfer Service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Required. S3 Bucket name (see - * [Creating a - * bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-location-example.html)). - * - * Generated from protobuf field string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBucketName() - { - return $this->bucket_name; - } - - /** - * Required. S3 Bucket name (see - * [Creating a - * bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-location-example.html)). - * - * Generated from protobuf field string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBucketName($var) - { - GPBUtil::checkString($var, True); - $this->bucket_name = $var; - - return $this; - } - - /** - * Input only. AWS access key used to sign the API requests to the AWS S3 - * bucket. Permissions on the bucket must be granted to the access ID of the - * AWS access key. - * For information on our data retention policy for user credentials, see - * [User credentials](/storage-transfer/docs/data-retention#user-credentials). - * - * Generated from protobuf field .google.storagetransfer.v1.AwsAccessKey aws_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Cloud\StorageTransfer\V1\AwsAccessKey|null - */ - public function getAwsAccessKey() - { - return $this->aws_access_key; - } - - public function hasAwsAccessKey() - { - return isset($this->aws_access_key); - } - - public function clearAwsAccessKey() - { - unset($this->aws_access_key); - } - - /** - * Input only. AWS access key used to sign the API requests to the AWS S3 - * bucket. Permissions on the bucket must be granted to the access ID of the - * AWS access key. - * For information on our data retention policy for user credentials, see - * [User credentials](/storage-transfer/docs/data-retention#user-credentials). - * - * Generated from protobuf field .google.storagetransfer.v1.AwsAccessKey aws_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Cloud\StorageTransfer\V1\AwsAccessKey $var - * @return $this - */ - public function setAwsAccessKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\AwsAccessKey::class); - $this->aws_access_key = $var; - - return $this; - } - - /** - * Root path to transfer objects. - * Must be an empty string or full path name that ends with a '/'. This field - * is treated as an object prefix. As such, it should generally not begin with - * a '/'. - * - * Generated from protobuf field string path = 3; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Root path to transfer objects. - * Must be an empty string or full path name that ends with a '/'. This field - * is treated as an object prefix. As such, it should generally not begin with - * a '/'. - * - * Generated from protobuf field string path = 3; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * The Amazon Resource Name (ARN) of the role to support temporary - * credentials via `AssumeRoleWithWebIdentity`. For more information about - * ARNs, see [IAM - * ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns). - * When a role ARN is provided, Transfer Service fetches temporary - * credentials for the session using a `AssumeRoleWithWebIdentity` call for - * the provided role using the - * [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] for - * this project. - * - * Generated from protobuf field string role_arn = 4; - * @return string - */ - public function getRoleArn() - { - return $this->role_arn; - } - - /** - * The Amazon Resource Name (ARN) of the role to support temporary - * credentials via `AssumeRoleWithWebIdentity`. For more information about - * ARNs, see [IAM - * ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns). - * When a role ARN is provided, Transfer Service fetches temporary - * credentials for the session using a `AssumeRoleWithWebIdentity` call for - * the provided role using the - * [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] for - * this project. - * - * Generated from protobuf field string role_arn = 4; - * @param string $var - * @return $this - */ - public function setRoleArn($var) - { - GPBUtil::checkString($var, True); - $this->role_arn = $var; - - return $this; - } - - /** - * Optional. The CloudFront distribution domain name pointing to this bucket, - * to use when fetching. - * See - * [Transfer from S3 via - * CloudFront](https://cloud.google.com/storage-transfer/docs/s3-cloudfront) - * for more information. - * Format: `https://{id}.cloudfront.net` or any valid custom domain. Must - * begin with `https://`. - * - * Generated from protobuf field string cloudfront_domain = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCloudfrontDomain() - { - return $this->cloudfront_domain; - } - - /** - * Optional. The CloudFront distribution domain name pointing to this bucket, - * to use when fetching. - * See - * [Transfer from S3 via - * CloudFront](https://cloud.google.com/storage-transfer/docs/s3-cloudfront) - * for more information. - * Format: `https://{id}.cloudfront.net` or any valid custom domain. Must - * begin with `https://`. - * - * Generated from protobuf field string cloudfront_domain = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCloudfrontDomain($var) - { - GPBUtil::checkString($var, True); - $this->cloudfront_domain = $var; - - return $this; - } - - /** - * Optional. The Resource name of a secret in Secret Manager. - * AWS credentials must be stored in Secret Manager in JSON format: - * { - * "access_key_id": "ACCESS_KEY_ID", - * "secret_access_key": "SECRET_ACCESS_KEY" - * } - * [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must - * be granted `roles/secretmanager.secretAccessor` for the resource. - * See [Configure access to a source: Amazon S3] - * (https://cloud.google.com/storage-transfer/docs/source-amazon-s3#secret_manager) - * for more information. - * If `credentials_secret` is specified, do not specify - * [role_arn][google.storagetransfer.v1.AwsS3Data.role_arn] or - * [aws_access_key][google.storagetransfer.v1.AwsS3Data.aws_access_key]. - * Format: `projects/{project_number}/secrets/{secret_name}` - * - * Generated from protobuf field string credentials_secret = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCredentialsSecret() - { - return $this->credentials_secret; - } - - /** - * Optional. The Resource name of a secret in Secret Manager. - * AWS credentials must be stored in Secret Manager in JSON format: - * { - * "access_key_id": "ACCESS_KEY_ID", - * "secret_access_key": "SECRET_ACCESS_KEY" - * } - * [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must - * be granted `roles/secretmanager.secretAccessor` for the resource. - * See [Configure access to a source: Amazon S3] - * (https://cloud.google.com/storage-transfer/docs/source-amazon-s3#secret_manager) - * for more information. - * If `credentials_secret` is specified, do not specify - * [role_arn][google.storagetransfer.v1.AwsS3Data.role_arn] or - * [aws_access_key][google.storagetransfer.v1.AwsS3Data.aws_access_key]. - * Format: `projects/{project_number}/secrets/{secret_name}` - * - * Generated from protobuf field string credentials_secret = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCredentialsSecret($var) - { - GPBUtil::checkString($var, True); - $this->credentials_secret = $var; - - return $this; - } - - /** - * Egress bytes over a Google-managed private network. - * This network is shared between other users of Storage Transfer Service. - * - * Generated from protobuf field bool managed_private_network = 8; - * @return bool - */ - public function getManagedPrivateNetwork() - { - return $this->readOneof(8); - } - - public function hasManagedPrivateNetwork() - { - return $this->hasOneof(8); - } - - /** - * Egress bytes over a Google-managed private network. - * This network is shared between other users of Storage Transfer Service. - * - * Generated from protobuf field bool managed_private_network = 8; - * @param bool $var - * @return $this - */ - public function setManagedPrivateNetwork($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * @return string - */ - public function getPrivateNetwork() - { - return $this->whichOneof("private_network"); - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AzureBlobStorageData.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AzureBlobStorageData.php deleted file mode 100644 index 24b3b9fab1b2..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AzureBlobStorageData.php +++ /dev/null @@ -1,291 +0,0 @@ -google.storagetransfer.v1.AzureBlobStorageData - */ -class AzureBlobStorageData extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Azure Storage account. - * - * Generated from protobuf field string storage_account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $storage_account = ''; - /** - * Required. Input only. Credentials used to authenticate API requests to - * Azure. - * For information on our data retention policy for user credentials, see - * [User credentials](/storage-transfer/docs/data-retention#user-credentials). - * - * Generated from protobuf field .google.storagetransfer.v1.AzureCredentials azure_credentials = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $azure_credentials = null; - /** - * Required. The container to transfer from the Azure Storage account. - * - * Generated from protobuf field string container = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $container = ''; - /** - * Root path to transfer objects. - * Must be an empty string or full path name that ends with a '/'. This field - * is treated as an object prefix. As such, it should generally not begin with - * a '/'. - * - * Generated from protobuf field string path = 5; - */ - protected $path = ''; - /** - * Optional. The Resource name of a secret in Secret Manager. - * The Azure SAS token must be stored in Secret Manager in JSON format: - * { - * "sas_token" : "SAS_TOKEN" - * } - * [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must - * be granted `roles/secretmanager.secretAccessor` for the resource. - * See [Configure access to a source: Microsoft Azure Blob Storage] - * (https://cloud.google.com/storage-transfer/docs/source-microsoft-azure#secret_manager) - * for more information. - * If `credentials_secret` is specified, do not specify - * [azure_credentials][google.storagetransfer.v1.AzureBlobStorageData.azure_credentials]. - * Format: `projects/{project_number}/secrets/{secret_name}` - * - * Generated from protobuf field string credentials_secret = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $credentials_secret = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $storage_account - * Required. The name of the Azure Storage account. - * @type \Google\Cloud\StorageTransfer\V1\AzureCredentials $azure_credentials - * Required. Input only. Credentials used to authenticate API requests to - * Azure. - * For information on our data retention policy for user credentials, see - * [User credentials](/storage-transfer/docs/data-retention#user-credentials). - * @type string $container - * Required. The container to transfer from the Azure Storage account. - * @type string $path - * Root path to transfer objects. - * Must be an empty string or full path name that ends with a '/'. This field - * is treated as an object prefix. As such, it should generally not begin with - * a '/'. - * @type string $credentials_secret - * Optional. The Resource name of a secret in Secret Manager. - * The Azure SAS token must be stored in Secret Manager in JSON format: - * { - * "sas_token" : "SAS_TOKEN" - * } - * [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must - * be granted `roles/secretmanager.secretAccessor` for the resource. - * See [Configure access to a source: Microsoft Azure Blob Storage] - * (https://cloud.google.com/storage-transfer/docs/source-microsoft-azure#secret_manager) - * for more information. - * If `credentials_secret` is specified, do not specify - * [azure_credentials][google.storagetransfer.v1.AzureBlobStorageData.azure_credentials]. - * Format: `projects/{project_number}/secrets/{secret_name}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Azure Storage account. - * - * Generated from protobuf field string storage_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getStorageAccount() - { - return $this->storage_account; - } - - /** - * Required. The name of the Azure Storage account. - * - * Generated from protobuf field string storage_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setStorageAccount($var) - { - GPBUtil::checkString($var, True); - $this->storage_account = $var; - - return $this; - } - - /** - * Required. Input only. Credentials used to authenticate API requests to - * Azure. - * For information on our data retention policy for user credentials, see - * [User credentials](/storage-transfer/docs/data-retention#user-credentials). - * - * Generated from protobuf field .google.storagetransfer.v1.AzureCredentials azure_credentials = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Cloud\StorageTransfer\V1\AzureCredentials|null - */ - public function getAzureCredentials() - { - return $this->azure_credentials; - } - - public function hasAzureCredentials() - { - return isset($this->azure_credentials); - } - - public function clearAzureCredentials() - { - unset($this->azure_credentials); - } - - /** - * Required. Input only. Credentials used to authenticate API requests to - * Azure. - * For information on our data retention policy for user credentials, see - * [User credentials](/storage-transfer/docs/data-retention#user-credentials). - * - * Generated from protobuf field .google.storagetransfer.v1.AzureCredentials azure_credentials = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Cloud\StorageTransfer\V1\AzureCredentials $var - * @return $this - */ - public function setAzureCredentials($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\AzureCredentials::class); - $this->azure_credentials = $var; - - return $this; - } - - /** - * Required. The container to transfer from the Azure Storage account. - * - * Generated from protobuf field string container = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getContainer() - { - return $this->container; - } - - /** - * Required. The container to transfer from the Azure Storage account. - * - * Generated from protobuf field string container = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setContainer($var) - { - GPBUtil::checkString($var, True); - $this->container = $var; - - return $this; - } - - /** - * Root path to transfer objects. - * Must be an empty string or full path name that ends with a '/'. This field - * is treated as an object prefix. As such, it should generally not begin with - * a '/'. - * - * Generated from protobuf field string path = 5; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Root path to transfer objects. - * Must be an empty string or full path name that ends with a '/'. This field - * is treated as an object prefix. As such, it should generally not begin with - * a '/'. - * - * Generated from protobuf field string path = 5; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Optional. The Resource name of a secret in Secret Manager. - * The Azure SAS token must be stored in Secret Manager in JSON format: - * { - * "sas_token" : "SAS_TOKEN" - * } - * [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must - * be granted `roles/secretmanager.secretAccessor` for the resource. - * See [Configure access to a source: Microsoft Azure Blob Storage] - * (https://cloud.google.com/storage-transfer/docs/source-microsoft-azure#secret_manager) - * for more information. - * If `credentials_secret` is specified, do not specify - * [azure_credentials][google.storagetransfer.v1.AzureBlobStorageData.azure_credentials]. - * Format: `projects/{project_number}/secrets/{secret_name}` - * - * Generated from protobuf field string credentials_secret = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCredentialsSecret() - { - return $this->credentials_secret; - } - - /** - * Optional. The Resource name of a secret in Secret Manager. - * The Azure SAS token must be stored in Secret Manager in JSON format: - * { - * "sas_token" : "SAS_TOKEN" - * } - * [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must - * be granted `roles/secretmanager.secretAccessor` for the resource. - * See [Configure access to a source: Microsoft Azure Blob Storage] - * (https://cloud.google.com/storage-transfer/docs/source-microsoft-azure#secret_manager) - * for more information. - * If `credentials_secret` is specified, do not specify - * [azure_credentials][google.storagetransfer.v1.AzureBlobStorageData.azure_credentials]. - * Format: `projects/{project_number}/secrets/{secret_name}` - * - * Generated from protobuf field string credentials_secret = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCredentialsSecret($var) - { - GPBUtil::checkString($var, True); - $this->credentials_secret = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AzureCredentials.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AzureCredentials.php deleted file mode 100644 index 3195617e14c0..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/AzureCredentials.php +++ /dev/null @@ -1,85 +0,0 @@ -google.storagetransfer.v1.AzureCredentials - */ -class AzureCredentials extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Azure shared access signature (SAS). - * For more information about SAS, see - * [Grant limited access to Azure Storage resources using shared access - * signatures - * (SAS)](https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview). - * - * Generated from protobuf field string sas_token = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $sas_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $sas_token - * Required. Azure shared access signature (SAS). - * For more information about SAS, see - * [Grant limited access to Azure Storage resources using shared access - * signatures - * (SAS)](https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Required. Azure shared access signature (SAS). - * For more information about SAS, see - * [Grant limited access to Azure Storage resources using shared access - * signatures - * (SAS)](https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview). - * - * Generated from protobuf field string sas_token = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSasToken() - { - return $this->sas_token; - } - - /** - * Required. Azure shared access signature (SAS). - * For more information about SAS, see - * [Grant limited access to Azure Storage resources using shared access - * signatures - * (SAS)](https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview). - * - * Generated from protobuf field string sas_token = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSasToken($var) - { - GPBUtil::checkString($var, True); - $this->sas_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/CreateAgentPoolRequest.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/CreateAgentPoolRequest.php deleted file mode 100644 index 24da653a69be..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/CreateAgentPoolRequest.php +++ /dev/null @@ -1,215 +0,0 @@ -google.storagetransfer.v1.CreateAgentPoolRequest - */ -class CreateAgentPoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the Google Cloud project that owns the - * agent pool. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * Required. The agent pool to create. - * - * Generated from protobuf field .google.storagetransfer.v1.AgentPool agent_pool = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $agent_pool = null; - /** - * Required. The ID of the agent pool to create. - * The `agent_pool_id` must meet the following requirements: - * * Length of 128 characters or less. - * * Not start with the string `goog`. - * * Start with a lowercase ASCII character, followed by: - * * Zero or more: lowercase Latin alphabet characters, numerals, - * hyphens (`-`), periods (`.`), underscores (`_`), or tildes (`~`). - * * One or more numerals or lowercase ASCII characters. - * As expressed by the regular expression: - * `^(?!goog)[a-z]([a-z0-9-._~]*[a-z0-9])?$`. - * - * Generated from protobuf field string agent_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $agent_pool_id = ''; - - /** - * @param string $projectId Required. The ID of the Google Cloud project that owns the - * agent pool. - * @param \Google\Cloud\StorageTransfer\V1\AgentPool $agentPool Required. The agent pool to create. - * @param string $agentPoolId Required. The ID of the agent pool to create. - * - * The `agent_pool_id` must meet the following requirements: - * - * * Length of 128 characters or less. - * * Not start with the string `goog`. - * * Start with a lowercase ASCII character, followed by: - * * Zero or more: lowercase Latin alphabet characters, numerals, - * hyphens (`-`), periods (`.`), underscores (`_`), or tildes (`~`). - * * One or more numerals or lowercase ASCII characters. - * - * As expressed by the regular expression: - * `^(?!goog)[a-z]([a-z0-9-._~]*[a-z0-9])?$`. - * - * @return \Google\Cloud\StorageTransfer\V1\CreateAgentPoolRequest - * - * @experimental - */ - public static function build(string $projectId, \Google\Cloud\StorageTransfer\V1\AgentPool $agentPool, string $agentPoolId): self - { - return (new self()) - ->setProjectId($projectId) - ->setAgentPool($agentPool) - ->setAgentPoolId($agentPoolId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The ID of the Google Cloud project that owns the - * agent pool. - * @type \Google\Cloud\StorageTransfer\V1\AgentPool $agent_pool - * Required. The agent pool to create. - * @type string $agent_pool_id - * Required. The ID of the agent pool to create. - * The `agent_pool_id` must meet the following requirements: - * * Length of 128 characters or less. - * * Not start with the string `goog`. - * * Start with a lowercase ASCII character, followed by: - * * Zero or more: lowercase Latin alphabet characters, numerals, - * hyphens (`-`), periods (`.`), underscores (`_`), or tildes (`~`). - * * One or more numerals or lowercase ASCII characters. - * As expressed by the regular expression: - * `^(?!goog)[a-z]([a-z0-9-._~]*[a-z0-9])?$`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\Transfer::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the Google Cloud project that owns the - * agent pool. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the Google Cloud project that owns the - * agent pool. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The agent pool to create. - * - * Generated from protobuf field .google.storagetransfer.v1.AgentPool agent_pool = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\StorageTransfer\V1\AgentPool|null - */ - public function getAgentPool() - { - return $this->agent_pool; - } - - public function hasAgentPool() - { - return isset($this->agent_pool); - } - - public function clearAgentPool() - { - unset($this->agent_pool); - } - - /** - * Required. The agent pool to create. - * - * Generated from protobuf field .google.storagetransfer.v1.AgentPool agent_pool = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\StorageTransfer\V1\AgentPool $var - * @return $this - */ - public function setAgentPool($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\AgentPool::class); - $this->agent_pool = $var; - - return $this; - } - - /** - * Required. The ID of the agent pool to create. - * The `agent_pool_id` must meet the following requirements: - * * Length of 128 characters or less. - * * Not start with the string `goog`. - * * Start with a lowercase ASCII character, followed by: - * * Zero or more: lowercase Latin alphabet characters, numerals, - * hyphens (`-`), periods (`.`), underscores (`_`), or tildes (`~`). - * * One or more numerals or lowercase ASCII characters. - * As expressed by the regular expression: - * `^(?!goog)[a-z]([a-z0-9-._~]*[a-z0-9])?$`. - * - * Generated from protobuf field string agent_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAgentPoolId() - { - return $this->agent_pool_id; - } - - /** - * Required. The ID of the agent pool to create. - * The `agent_pool_id` must meet the following requirements: - * * Length of 128 characters or less. - * * Not start with the string `goog`. - * * Start with a lowercase ASCII character, followed by: - * * Zero or more: lowercase Latin alphabet characters, numerals, - * hyphens (`-`), periods (`.`), underscores (`_`), or tildes (`~`). - * * One or more numerals or lowercase ASCII characters. - * As expressed by the regular expression: - * `^(?!goog)[a-z]([a-z0-9-._~]*[a-z0-9])?$`. - * - * Generated from protobuf field string agent_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAgentPoolId($var) - { - GPBUtil::checkString($var, True); - $this->agent_pool_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/CreateTransferJobRequest.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/CreateTransferJobRequest.php deleted file mode 100644 index b1164d786f1b..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/CreateTransferJobRequest.php +++ /dev/null @@ -1,77 +0,0 @@ -google.storagetransfer.v1.CreateTransferJobRequest - */ -class CreateTransferJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The job to create. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferJob transfer_job = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $transfer_job = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\StorageTransfer\V1\TransferJob $transfer_job - * Required. The job to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\Transfer::initOnce(); - parent::__construct($data); - } - - /** - * Required. The job to create. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferJob transfer_job = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\StorageTransfer\V1\TransferJob|null - */ - public function getTransferJob() - { - return $this->transfer_job; - } - - public function hasTransferJob() - { - return isset($this->transfer_job); - } - - public function clearTransferJob() - { - unset($this->transfer_job); - } - - /** - * Required. The job to create. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferJob transfer_job = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\StorageTransfer\V1\TransferJob $var - * @return $this - */ - public function setTransferJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\TransferJob::class); - $this->transfer_job = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/DeleteAgentPoolRequest.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/DeleteAgentPoolRequest.php deleted file mode 100644 index 85ac4ce5034c..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/DeleteAgentPoolRequest.php +++ /dev/null @@ -1,80 +0,0 @@ -google.storagetransfer.v1.DeleteAgentPoolRequest - */ -class DeleteAgentPoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the agent pool to delete. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the agent pool to delete. - * - * @return \Google\Cloud\StorageTransfer\V1\DeleteAgentPoolRequest - * - * @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 agent pool to delete. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\Transfer::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the agent pool to delete. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the agent pool to delete. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/DeleteTransferJobRequest.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/DeleteTransferJobRequest.php deleted file mode 100644 index 3dde1ab00126..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/DeleteTransferJobRequest.php +++ /dev/null @@ -1,105 +0,0 @@ -google.storagetransfer.v1.DeleteTransferJobRequest - */ -class DeleteTransferJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The job to delete. - * - * Generated from protobuf field string job_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $job_name = ''; - /** - * Required. The ID of the Google Cloud project that owns the - * job. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $job_name - * Required. The job to delete. - * @type string $project_id - * Required. The ID of the Google Cloud project that owns the - * job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\Transfer::initOnce(); - parent::__construct($data); - } - - /** - * Required. The job to delete. - * - * Generated from protobuf field string job_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getJobName() - { - return $this->job_name; - } - - /** - * Required. The job to delete. - * - * Generated from protobuf field string job_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setJobName($var) - { - GPBUtil::checkString($var, True); - $this->job_name = $var; - - return $this; - } - - /** - * Required. The ID of the Google Cloud project that owns the - * job. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the Google Cloud project that owns the - * job. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ErrorLogEntry.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ErrorLogEntry.php deleted file mode 100644 index 08f96dd976ca..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ErrorLogEntry.php +++ /dev/null @@ -1,105 +0,0 @@ -google.storagetransfer.v1.ErrorLogEntry - */ -class ErrorLogEntry extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A URL that refers to the target (a data source, a data sink, - * or an object) with which the error is associated. - * - * Generated from protobuf field string url = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $url = ''; - /** - * A list of messages that carry the error details. - * - * Generated from protobuf field repeated string error_details = 3; - */ - private $error_details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url - * Required. A URL that refers to the target (a data source, a data sink, - * or an object) with which the error is associated. - * @type array|\Google\Protobuf\Internal\RepeatedField $error_details - * A list of messages that carry the error details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Required. A URL that refers to the target (a data source, a data sink, - * or an object) with which the error is associated. - * - * Generated from protobuf field string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * Required. A URL that refers to the target (a data source, a data sink, - * or an object) with which the error is associated. - * - * Generated from protobuf field string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - - /** - * A list of messages that carry the error details. - * - * Generated from protobuf field repeated string error_details = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrorDetails() - { - return $this->error_details; - } - - /** - * A list of messages that carry the error details. - * - * Generated from protobuf field repeated string error_details = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrorDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->error_details = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ErrorSummary.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ErrorSummary.php deleted file mode 100644 index fff660e9c4ce..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ErrorSummary.php +++ /dev/null @@ -1,144 +0,0 @@ -google.storagetransfer.v1.ErrorSummary - */ -class ErrorSummary extends \Google\Protobuf\Internal\Message -{ - /** - * Required. - * - * Generated from protobuf field .google.rpc.Code error_code = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $error_code = 0; - /** - * Required. Count of this type of error. - * - * Generated from protobuf field int64 error_count = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $error_count = 0; - /** - * Error samples. - * At most 5 error log entries are recorded for a given - * error code for a single transfer operation. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3; - */ - private $error_log_entries; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $error_code - * Required. - * @type int|string $error_count - * Required. Count of this type of error. - * @type array<\Google\Cloud\StorageTransfer\V1\ErrorLogEntry>|\Google\Protobuf\Internal\RepeatedField $error_log_entries - * Error samples. - * At most 5 error log entries are recorded for a given - * error code for a single transfer operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Required. - * - * Generated from protobuf field .google.rpc.Code error_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getErrorCode() - { - return $this->error_code; - } - - /** - * Required. - * - * Generated from protobuf field .google.rpc.Code error_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setErrorCode($var) - { - GPBUtil::checkEnum($var, \Google\Rpc\Code::class); - $this->error_code = $var; - - return $this; - } - - /** - * Required. Count of this type of error. - * - * Generated from protobuf field int64 error_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int|string - */ - public function getErrorCount() - { - return $this->error_count; - } - - /** - * Required. Count of this type of error. - * - * Generated from protobuf field int64 error_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int|string $var - * @return $this - */ - public function setErrorCount($var) - { - GPBUtil::checkInt64($var); - $this->error_count = $var; - - return $this; - } - - /** - * Error samples. - * At most 5 error log entries are recorded for a given - * error code for a single transfer operation. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrorLogEntries() - { - return $this->error_log_entries; - } - - /** - * Error samples. - * At most 5 error log entries are recorded for a given - * error code for a single transfer operation. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.ErrorLogEntry error_log_entries = 3; - * @param array<\Google\Cloud\StorageTransfer\V1\ErrorLogEntry>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrorLogEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\StorageTransfer\V1\ErrorLogEntry::class); - $this->error_log_entries = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/EventStream.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/EventStream.php deleted file mode 100644 index 787bd47f1925..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/EventStream.php +++ /dev/null @@ -1,188 +0,0 @@ -google.storagetransfer.v1.EventStream - */ -class EventStream extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Specifies a unique name of the resource such as AWS SQS - * ARN in the form 'arn:aws:sqs:region:account_id:queue_name', - * or Pub/Sub subscription resource name in the form - * 'projects/{project}/subscriptions/{sub}'. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Specifies the date and time that Storage Transfer Service starts - * listening for events from this stream. If no start time is specified or - * start time is in the past, Storage Transfer Service starts listening - * immediately. - * - * Generated from protobuf field .google.protobuf.Timestamp event_stream_start_time = 2; - */ - protected $event_stream_start_time = null; - /** - * Specifies the data and time at which Storage Transfer Service stops - * listening for events from this stream. After this time, any transfers in - * progress will complete, but no new transfers are initiated. - * - * Generated from protobuf field .google.protobuf.Timestamp event_stream_expiration_time = 3; - */ - protected $event_stream_expiration_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Specifies a unique name of the resource such as AWS SQS - * ARN in the form 'arn:aws:sqs:region:account_id:queue_name', - * or Pub/Sub subscription resource name in the form - * 'projects/{project}/subscriptions/{sub}'. - * @type \Google\Protobuf\Timestamp $event_stream_start_time - * Specifies the date and time that Storage Transfer Service starts - * listening for events from this stream. If no start time is specified or - * start time is in the past, Storage Transfer Service starts listening - * immediately. - * @type \Google\Protobuf\Timestamp $event_stream_expiration_time - * Specifies the data and time at which Storage Transfer Service stops - * listening for events from this stream. After this time, any transfers in - * progress will complete, but no new transfers are initiated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Required. Specifies a unique name of the resource such as AWS SQS - * ARN in the form 'arn:aws:sqs:region:account_id:queue_name', - * or Pub/Sub subscription resource name in the form - * 'projects/{project}/subscriptions/{sub}'. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Specifies a unique name of the resource such as AWS SQS - * ARN in the form 'arn:aws:sqs:region:account_id:queue_name', - * or Pub/Sub subscription resource name in the form - * 'projects/{project}/subscriptions/{sub}'. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Specifies the date and time that Storage Transfer Service starts - * listening for events from this stream. If no start time is specified or - * start time is in the past, Storage Transfer Service starts listening - * immediately. - * - * Generated from protobuf field .google.protobuf.Timestamp event_stream_start_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEventStreamStartTime() - { - return $this->event_stream_start_time; - } - - public function hasEventStreamStartTime() - { - return isset($this->event_stream_start_time); - } - - public function clearEventStreamStartTime() - { - unset($this->event_stream_start_time); - } - - /** - * Specifies the date and time that Storage Transfer Service starts - * listening for events from this stream. If no start time is specified or - * start time is in the past, Storage Transfer Service starts listening - * immediately. - * - * Generated from protobuf field .google.protobuf.Timestamp event_stream_start_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEventStreamStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->event_stream_start_time = $var; - - return $this; - } - - /** - * Specifies the data and time at which Storage Transfer Service stops - * listening for events from this stream. After this time, any transfers in - * progress will complete, but no new transfers are initiated. - * - * Generated from protobuf field .google.protobuf.Timestamp event_stream_expiration_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEventStreamExpirationTime() - { - return $this->event_stream_expiration_time; - } - - public function hasEventStreamExpirationTime() - { - return isset($this->event_stream_expiration_time); - } - - public function clearEventStreamExpirationTime() - { - unset($this->event_stream_expiration_time); - } - - /** - * Specifies the data and time at which Storage Transfer Service stops - * listening for events from this stream. After this time, any transfers in - * progress will complete, but no new transfers are initiated. - * - * Generated from protobuf field .google.protobuf.Timestamp event_stream_expiration_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEventStreamExpirationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->event_stream_expiration_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GcsData.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GcsData.php deleted file mode 100644 index ff79b3646040..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GcsData.php +++ /dev/null @@ -1,198 +0,0 @@ -google.storagetransfer.v1.GcsData - */ -class GcsData extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Cloud Storage bucket name. Must meet - * [Bucket Name Requirements](/storage/docs/naming#requirements). - * - * Generated from protobuf field string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $bucket_name = ''; - /** - * Root path to transfer objects. - * Must be an empty string or full path name that ends with a '/'. This field - * is treated as an object prefix. As such, it should generally not begin with - * a '/'. - * The root path value must meet - * [Object Name Requirements](/storage/docs/naming#objectnames). - * - * Generated from protobuf field string path = 3; - */ - protected $path = ''; - /** - * Preview. Enables the transfer of managed folders between Cloud Storage - * buckets. Set this option on the gcs_data_source. - * If set to true: - * - Managed folders in the source bucket are transferred to the - * destination bucket. - * - Managed folders in the destination bucket are overwritten. Other - * OVERWRITE options are not supported. - * See - * [Transfer Cloud Storage managed - * folders](/storage-transfer/docs/managed-folders). - * - * Generated from protobuf field bool managed_folder_transfer_enabled = 4; - */ - protected $managed_folder_transfer_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $bucket_name - * Required. Cloud Storage bucket name. Must meet - * [Bucket Name Requirements](/storage/docs/naming#requirements). - * @type string $path - * Root path to transfer objects. - * Must be an empty string or full path name that ends with a '/'. This field - * is treated as an object prefix. As such, it should generally not begin with - * a '/'. - * The root path value must meet - * [Object Name Requirements](/storage/docs/naming#objectnames). - * @type bool $managed_folder_transfer_enabled - * Preview. Enables the transfer of managed folders between Cloud Storage - * buckets. Set this option on the gcs_data_source. - * If set to true: - * - Managed folders in the source bucket are transferred to the - * destination bucket. - * - Managed folders in the destination bucket are overwritten. Other - * OVERWRITE options are not supported. - * See - * [Transfer Cloud Storage managed - * folders](/storage-transfer/docs/managed-folders). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Required. Cloud Storage bucket name. Must meet - * [Bucket Name Requirements](/storage/docs/naming#requirements). - * - * Generated from protobuf field string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBucketName() - { - return $this->bucket_name; - } - - /** - * Required. Cloud Storage bucket name. Must meet - * [Bucket Name Requirements](/storage/docs/naming#requirements). - * - * Generated from protobuf field string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBucketName($var) - { - GPBUtil::checkString($var, True); - $this->bucket_name = $var; - - return $this; - } - - /** - * Root path to transfer objects. - * Must be an empty string or full path name that ends with a '/'. This field - * is treated as an object prefix. As such, it should generally not begin with - * a '/'. - * The root path value must meet - * [Object Name Requirements](/storage/docs/naming#objectnames). - * - * Generated from protobuf field string path = 3; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Root path to transfer objects. - * Must be an empty string or full path name that ends with a '/'. This field - * is treated as an object prefix. As such, it should generally not begin with - * a '/'. - * The root path value must meet - * [Object Name Requirements](/storage/docs/naming#objectnames). - * - * Generated from protobuf field string path = 3; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Preview. Enables the transfer of managed folders between Cloud Storage - * buckets. Set this option on the gcs_data_source. - * If set to true: - * - Managed folders in the source bucket are transferred to the - * destination bucket. - * - Managed folders in the destination bucket are overwritten. Other - * OVERWRITE options are not supported. - * See - * [Transfer Cloud Storage managed - * folders](/storage-transfer/docs/managed-folders). - * - * Generated from protobuf field bool managed_folder_transfer_enabled = 4; - * @return bool - */ - public function getManagedFolderTransferEnabled() - { - return $this->managed_folder_transfer_enabled; - } - - /** - * Preview. Enables the transfer of managed folders between Cloud Storage - * buckets. Set this option on the gcs_data_source. - * If set to true: - * - Managed folders in the source bucket are transferred to the - * destination bucket. - * - Managed folders in the destination bucket are overwritten. Other - * OVERWRITE options are not supported. - * See - * [Transfer Cloud Storage managed - * folders](/storage-transfer/docs/managed-folders). - * - * Generated from protobuf field bool managed_folder_transfer_enabled = 4; - * @param bool $var - * @return $this - */ - public function setManagedFolderTransferEnabled($var) - { - GPBUtil::checkBool($var); - $this->managed_folder_transfer_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GetAgentPoolRequest.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GetAgentPoolRequest.php deleted file mode 100644 index f9c7e04c6591..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GetAgentPoolRequest.php +++ /dev/null @@ -1,80 +0,0 @@ -google.storagetransfer.v1.GetAgentPoolRequest - */ -class GetAgentPoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the agent pool to get. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the agent pool to get. - * - * @return \Google\Cloud\StorageTransfer\V1\GetAgentPoolRequest - * - * @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 agent pool to get. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\Transfer::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the agent pool to get. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the agent pool to get. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GetGoogleServiceAccountRequest.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GetGoogleServiceAccountRequest.php deleted file mode 100644 index 78735764c2ea..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GetGoogleServiceAccountRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.storagetransfer.v1.GetGoogleServiceAccountRequest - */ -class GetGoogleServiceAccountRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the Google Cloud project that the Google service - * account is associated with. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The ID of the Google Cloud project that the Google service - * account is associated with. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\Transfer::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the Google Cloud project that the Google service - * account is associated with. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the Google Cloud project that the Google service - * account is associated with. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GetTransferJobRequest.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GetTransferJobRequest.php deleted file mode 100644 index c2efb03a573d..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GetTransferJobRequest.php +++ /dev/null @@ -1,105 +0,0 @@ -google.storagetransfer.v1.GetTransferJobRequest - */ -class GetTransferJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The job to get. - * - * Generated from protobuf field string job_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $job_name = ''; - /** - * Required. The ID of the Google Cloud project that owns the - * job. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $job_name - * Required. The job to get. - * @type string $project_id - * Required. The ID of the Google Cloud project that owns the - * job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\Transfer::initOnce(); - parent::__construct($data); - } - - /** - * Required. The job to get. - * - * Generated from protobuf field string job_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getJobName() - { - return $this->job_name; - } - - /** - * Required. The job to get. - * - * Generated from protobuf field string job_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setJobName($var) - { - GPBUtil::checkString($var, True); - $this->job_name = $var; - - return $this; - } - - /** - * Required. The ID of the Google Cloud project that owns the - * job. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the Google Cloud project that owns the - * job. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GoogleServiceAccount.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GoogleServiceAccount.php deleted file mode 100644 index 82f7b9177e50..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/GoogleServiceAccount.php +++ /dev/null @@ -1,101 +0,0 @@ -google.storagetransfer.v1.GoogleServiceAccount - */ -class GoogleServiceAccount extends \Google\Protobuf\Internal\Message -{ - /** - * Email address of the service account. - * - * Generated from protobuf field string account_email = 1; - */ - protected $account_email = ''; - /** - * Unique identifier for the service account. - * - * Generated from protobuf field string subject_id = 2; - */ - protected $subject_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $account_email - * Email address of the service account. - * @type string $subject_id - * Unique identifier for the service account. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Email address of the service account. - * - * Generated from protobuf field string account_email = 1; - * @return string - */ - public function getAccountEmail() - { - return $this->account_email; - } - - /** - * Email address of the service account. - * - * Generated from protobuf field string account_email = 1; - * @param string $var - * @return $this - */ - public function setAccountEmail($var) - { - GPBUtil::checkString($var, True); - $this->account_email = $var; - - return $this; - } - - /** - * Unique identifier for the service account. - * - * Generated from protobuf field string subject_id = 2; - * @return string - */ - public function getSubjectId() - { - return $this->subject_id; - } - - /** - * Unique identifier for the service account. - * - * Generated from protobuf field string subject_id = 2; - * @param string $var - * @return $this - */ - public function setSubjectId($var) - { - GPBUtil::checkString($var, True); - $this->subject_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/HdfsData.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/HdfsData.php deleted file mode 100644 index 0f758e41c179..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/HdfsData.php +++ /dev/null @@ -1,70 +0,0 @@ -google.storagetransfer.v1.HdfsData - */ -class HdfsData extends \Google\Protobuf\Internal\Message -{ - /** - * Root path to transfer files. - * - * Generated from protobuf field string path = 1; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $path - * Root path to transfer files. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Root path to transfer files. - * - * Generated from protobuf field string path = 1; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Root path to transfer files. - * - * Generated from protobuf field string path = 1; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/HttpData.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/HttpData.php deleted file mode 100644 index 6416983f6269..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/HttpData.php +++ /dev/null @@ -1,103 +0,0 @@ -` is - * transferred to a data sink, the name of the object at the data sink is - * `/`. - * * If the specified size of an object does not match the actual size of the - * object fetched, the object is not transferred. - * * If the specified MD5 does not match the MD5 computed from the transferred - * bytes, the object transfer fails. - * * Ensure that each URL you specify is publicly accessible. For - * example, in Cloud Storage you can - * [share an object publicly] - * (/storage/docs/cloud-console#_sharingdata) and get a link to it. - * * Storage Transfer Service obeys `robots.txt` rules and requires the source - * HTTP server to support `Range` requests and to return a `Content-Length` - * header in each response. - * * [ObjectConditions][google.storagetransfer.v1.ObjectConditions] have no - * effect when filtering objects to transfer. - * - * Generated from protobuf message google.storagetransfer.v1.HttpData - */ -class HttpData extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The URL that points to the file that stores the object list - * entries. This file must allow public access. Currently, only URLs with - * HTTP and HTTPS schemes are supported. - * - * Generated from protobuf field string list_url = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $list_url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $list_url - * Required. The URL that points to the file that stores the object list - * entries. This file must allow public access. Currently, only URLs with - * HTTP and HTTPS schemes are supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Required. The URL that points to the file that stores the object list - * entries. This file must allow public access. Currently, only URLs with - * HTTP and HTTPS schemes are supported. - * - * Generated from protobuf field string list_url = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getListUrl() - { - return $this->list_url; - } - - /** - * Required. The URL that points to the file that stores the object list - * entries. This file must allow public access. Currently, only URLs with - * HTTP and HTTPS schemes are supported. - * - * Generated from protobuf field string list_url = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setListUrl($var) - { - GPBUtil::checkString($var, True); - $this->list_url = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ListAgentPoolsRequest.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ListAgentPoolsRequest.php deleted file mode 100644 index 28498058b27d..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ListAgentPoolsRequest.php +++ /dev/null @@ -1,202 +0,0 @@ -google.storagetransfer.v1.ListAgentPoolsRequest - */ -class ListAgentPoolsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the Google Cloud project that owns the job. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * An optional list of query parameters specified as JSON text in the - * form of: - * `{"agentPoolNames":["agentpool1","agentpool2",...]}` - * Since `agentPoolNames` support multiple values, its values must be - * specified with array notation. When the filter is either empty or not - * provided, the list returns all agent pools for the project. - * - * Generated from protobuf field string filter = 2; - */ - protected $filter = ''; - /** - * The list page size. The max allowed value is `256`. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * The list page token. - * - * Generated from protobuf field string page_token = 4; - */ - protected $page_token = ''; - - /** - * @param string $projectId Required. The ID of the Google Cloud project that owns the job. - * - * @return \Google\Cloud\StorageTransfer\V1\ListAgentPoolsRequest - * - * @experimental - */ - public static function build(string $projectId): self - { - return (new self()) - ->setProjectId($projectId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The ID of the Google Cloud project that owns the job. - * @type string $filter - * An optional list of query parameters specified as JSON text in the - * form of: - * `{"agentPoolNames":["agentpool1","agentpool2",...]}` - * Since `agentPoolNames` support multiple values, its values must be - * specified with array notation. When the filter is either empty or not - * provided, the list returns all agent pools for the project. - * @type int $page_size - * The list page size. The max allowed value is `256`. - * @type string $page_token - * The list page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\Transfer::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the Google Cloud project that owns the job. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the Google Cloud project that owns the job. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * An optional list of query parameters specified as JSON text in the - * form of: - * `{"agentPoolNames":["agentpool1","agentpool2",...]}` - * Since `agentPoolNames` support multiple values, its values must be - * specified with array notation. When the filter is either empty or not - * provided, the list returns all agent pools for the project. - * - * Generated from protobuf field string filter = 2; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * An optional list of query parameters specified as JSON text in the - * form of: - * `{"agentPoolNames":["agentpool1","agentpool2",...]}` - * Since `agentPoolNames` support multiple values, its values must be - * specified with array notation. When the filter is either empty or not - * provided, the list returns all agent pools for the project. - * - * Generated from protobuf field string filter = 2; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The list page size. The max allowed value is `256`. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The list page size. The max allowed value is `256`. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The list page token. - * - * Generated from protobuf field string page_token = 4; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The list page token. - * - * Generated from protobuf field string page_token = 4; - * @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/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ListAgentPoolsResponse.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ListAgentPoolsResponse.php deleted file mode 100644 index d2c226f11f56..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ListAgentPoolsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.storagetransfer.v1.ListAgentPoolsResponse - */ -class ListAgentPoolsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of agent pools. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.AgentPool agent_pools = 1; - */ - private $agent_pools; - /** - * The list next page token. - * - * 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 array<\Google\Cloud\StorageTransfer\V1\AgentPool>|\Google\Protobuf\Internal\RepeatedField $agent_pools - * A list of agent pools. - * @type string $next_page_token - * The list next page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\Transfer::initOnce(); - parent::__construct($data); - } - - /** - * A list of agent pools. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.AgentPool agent_pools = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAgentPools() - { - return $this->agent_pools; - } - - /** - * A list of agent pools. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.AgentPool agent_pools = 1; - * @param array<\Google\Cloud\StorageTransfer\V1\AgentPool>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAgentPools($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\StorageTransfer\V1\AgentPool::class); - $this->agent_pools = $arr; - - return $this; - } - - /** - * The list next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The list next page token. - * - * 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/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ListTransferJobsRequest.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ListTransferJobsRequest.php deleted file mode 100644 index b8cd19e45d64..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ListTransferJobsRequest.php +++ /dev/null @@ -1,228 +0,0 @@ -google.storagetransfer.v1.ListTransferJobsRequest - */ -class ListTransferJobsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A list of query parameters specified as JSON text in the form of: - * ``` - * { - * "projectId":"my_project_id", - * "jobNames":["jobid1","jobid2",...], - * "jobStatuses":["status1","status2",...], - * "dataBackend":"QUERY_REPLICATION_CONFIGS", - * "sourceBucket":"source-bucket-name", - * "sinkBucket":"sink-bucket-name", - * } - * ``` - * The JSON formatting in the example is for display only; provide the - * query parameters without spaces or line breaks. - * * `projectId` is required. - * * Since `jobNames` and `jobStatuses` support multiple values, their values - * must be specified with array notation. `jobNames` and `jobStatuses` are - * optional. Valid values are case-insensitive: - * * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED] - * * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED] - * * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] - * * Specify `"dataBackend":"QUERY_REPLICATION_CONFIGS"` to return a list of - * cross-bucket replication jobs. - * * Limit the results to jobs from a particular bucket with `sourceBucket` - * and/or to a particular bucket with `sinkBucket`. - * - * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = ''; - /** - * The list page size. The max allowed value is 256. - * - * Generated from protobuf field int32 page_size = 4; - */ - protected $page_size = 0; - /** - * The list page token. - * - * Generated from protobuf field string page_token = 5; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $filter - * Required. A list of query parameters specified as JSON text in the form of: - * ``` - * { - * "projectId":"my_project_id", - * "jobNames":["jobid1","jobid2",...], - * "jobStatuses":["status1","status2",...], - * "dataBackend":"QUERY_REPLICATION_CONFIGS", - * "sourceBucket":"source-bucket-name", - * "sinkBucket":"sink-bucket-name", - * } - * ``` - * The JSON formatting in the example is for display only; provide the - * query parameters without spaces or line breaks. - * * `projectId` is required. - * * Since `jobNames` and `jobStatuses` support multiple values, their values - * must be specified with array notation. `jobNames` and `jobStatuses` are - * optional. Valid values are case-insensitive: - * * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED] - * * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED] - * * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] - * * Specify `"dataBackend":"QUERY_REPLICATION_CONFIGS"` to return a list of - * cross-bucket replication jobs. - * * Limit the results to jobs from a particular bucket with `sourceBucket` - * and/or to a particular bucket with `sinkBucket`. - * @type int $page_size - * The list page size. The max allowed value is 256. - * @type string $page_token - * The list page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\Transfer::initOnce(); - parent::__construct($data); - } - - /** - * Required. A list of query parameters specified as JSON text in the form of: - * ``` - * { - * "projectId":"my_project_id", - * "jobNames":["jobid1","jobid2",...], - * "jobStatuses":["status1","status2",...], - * "dataBackend":"QUERY_REPLICATION_CONFIGS", - * "sourceBucket":"source-bucket-name", - * "sinkBucket":"sink-bucket-name", - * } - * ``` - * The JSON formatting in the example is for display only; provide the - * query parameters without spaces or line breaks. - * * `projectId` is required. - * * Since `jobNames` and `jobStatuses` support multiple values, their values - * must be specified with array notation. `jobNames` and `jobStatuses` are - * optional. Valid values are case-insensitive: - * * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED] - * * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED] - * * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] - * * Specify `"dataBackend":"QUERY_REPLICATION_CONFIGS"` to return a list of - * cross-bucket replication jobs. - * * Limit the results to jobs from a particular bucket with `sourceBucket` - * and/or to a particular bucket with `sinkBucket`. - * - * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Required. A list of query parameters specified as JSON text in the form of: - * ``` - * { - * "projectId":"my_project_id", - * "jobNames":["jobid1","jobid2",...], - * "jobStatuses":["status1","status2",...], - * "dataBackend":"QUERY_REPLICATION_CONFIGS", - * "sourceBucket":"source-bucket-name", - * "sinkBucket":"sink-bucket-name", - * } - * ``` - * The JSON formatting in the example is for display only; provide the - * query parameters without spaces or line breaks. - * * `projectId` is required. - * * Since `jobNames` and `jobStatuses` support multiple values, their values - * must be specified with array notation. `jobNames` and `jobStatuses` are - * optional. Valid values are case-insensitive: - * * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED] - * * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED] - * * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] - * * Specify `"dataBackend":"QUERY_REPLICATION_CONFIGS"` to return a list of - * cross-bucket replication jobs. - * * Limit the results to jobs from a particular bucket with `sourceBucket` - * and/or to a particular bucket with `sinkBucket`. - * - * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The list page size. The max allowed value is 256. - * - * Generated from protobuf field int32 page_size = 4; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The list page size. The max allowed value is 256. - * - * Generated from protobuf field int32 page_size = 4; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The list page token. - * - * Generated from protobuf field string page_token = 5; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The list page token. - * - * Generated from protobuf field string page_token = 5; - * @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/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ListTransferJobsResponse.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ListTransferJobsResponse.php deleted file mode 100644 index d90d034828db..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ListTransferJobsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.storagetransfer.v1.ListTransferJobsResponse - */ -class ListTransferJobsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of transfer jobs. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.TransferJob transfer_jobs = 1; - */ - private $transfer_jobs; - /** - * The list next page token. - * - * 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 array<\Google\Cloud\StorageTransfer\V1\TransferJob>|\Google\Protobuf\Internal\RepeatedField $transfer_jobs - * A list of transfer jobs. - * @type string $next_page_token - * The list next page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\Transfer::initOnce(); - parent::__construct($data); - } - - /** - * A list of transfer jobs. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.TransferJob transfer_jobs = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTransferJobs() - { - return $this->transfer_jobs; - } - - /** - * A list of transfer jobs. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.TransferJob transfer_jobs = 1; - * @param array<\Google\Cloud\StorageTransfer\V1\TransferJob>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTransferJobs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\StorageTransfer\V1\TransferJob::class); - $this->transfer_jobs = $arr; - - return $this; - } - - /** - * The list next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The list next page token. - * - * 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/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/LoggingConfig.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/LoggingConfig.php deleted file mode 100644 index 22f830828e9c..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/LoggingConfig.php +++ /dev/null @@ -1,159 +0,0 @@ -google.storagetransfer.v1.LoggingConfig - */ -class LoggingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies the actions to be logged. If empty, no logs are generated. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1; - */ - private $log_actions; - /** - * States in which `log_actions` are logged. If empty, no logs are generated. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2; - */ - private $log_action_states; - /** - * For PosixFilesystem transfers, enables - * [file system transfer - * logs](https://cloud.google.com/storage-transfer/docs/on-prem-transfer-log-format) - * instead of, or in addition to, Cloud Logging. - * This option ignores [LoggableAction] and [LoggableActionState]. If these - * are set, Cloud Logging will also be enabled for this transfer. - * - * Generated from protobuf field bool enable_onprem_gcs_transfer_logs = 3; - */ - protected $enable_onprem_gcs_transfer_logs = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $log_actions - * Specifies the actions to be logged. If empty, no logs are generated. - * @type array|\Google\Protobuf\Internal\RepeatedField $log_action_states - * States in which `log_actions` are logged. If empty, no logs are generated. - * @type bool $enable_onprem_gcs_transfer_logs - * For PosixFilesystem transfers, enables - * [file system transfer - * logs](https://cloud.google.com/storage-transfer/docs/on-prem-transfer-log-format) - * instead of, or in addition to, Cloud Logging. - * This option ignores [LoggableAction] and [LoggableActionState]. If these - * are set, Cloud Logging will also be enabled for this transfer. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Specifies the actions to be logged. If empty, no logs are generated. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLogActions() - { - return $this->log_actions; - } - - /** - * Specifies the actions to be logged. If empty, no logs are generated. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.LoggingConfig.LoggableAction log_actions = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLogActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\StorageTransfer\V1\LoggingConfig\LoggableAction::class); - $this->log_actions = $arr; - - return $this; - } - - /** - * States in which `log_actions` are logged. If empty, no logs are generated. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLogActionStates() - { - return $this->log_action_states; - } - - /** - * States in which `log_actions` are logged. If empty, no logs are generated. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.LoggingConfig.LoggableActionState log_action_states = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLogActionStates($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\StorageTransfer\V1\LoggingConfig\LoggableActionState::class); - $this->log_action_states = $arr; - - return $this; - } - - /** - * For PosixFilesystem transfers, enables - * [file system transfer - * logs](https://cloud.google.com/storage-transfer/docs/on-prem-transfer-log-format) - * instead of, or in addition to, Cloud Logging. - * This option ignores [LoggableAction] and [LoggableActionState]. If these - * are set, Cloud Logging will also be enabled for this transfer. - * - * Generated from protobuf field bool enable_onprem_gcs_transfer_logs = 3; - * @return bool - */ - public function getEnableOnpremGcsTransferLogs() - { - return $this->enable_onprem_gcs_transfer_logs; - } - - /** - * For PosixFilesystem transfers, enables - * [file system transfer - * logs](https://cloud.google.com/storage-transfer/docs/on-prem-transfer-log-format) - * instead of, or in addition to, Cloud Logging. - * This option ignores [LoggableAction] and [LoggableActionState]. If these - * are set, Cloud Logging will also be enabled for this transfer. - * - * Generated from protobuf field bool enable_onprem_gcs_transfer_logs = 3; - * @param bool $var - * @return $this - */ - public function setEnableOnpremGcsTransferLogs($var) - { - GPBUtil::checkBool($var); - $this->enable_onprem_gcs_transfer_logs = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/LoggingConfig/LoggableAction.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/LoggingConfig/LoggableAction.php deleted file mode 100644 index dccfaae7ab3f..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/LoggingConfig/LoggableAction.php +++ /dev/null @@ -1,71 +0,0 @@ -google.storagetransfer.v1.LoggingConfig.LoggableAction - */ -class LoggableAction -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum LOGGABLE_ACTION_UNSPECIFIED = 0; - */ - const LOGGABLE_ACTION_UNSPECIFIED = 0; - /** - * Listing objects in a bucket. - * - * Generated from protobuf enum FIND = 1; - */ - const FIND = 1; - /** - * Deleting objects at the source or the destination. - * - * Generated from protobuf enum DELETE = 2; - */ - const DELETE = 2; - /** - * Copying objects to Google Cloud Storage. - * - * Generated from protobuf enum COPY = 3; - */ - const COPY = 3; - - private static $valueToName = [ - self::LOGGABLE_ACTION_UNSPECIFIED => 'LOGGABLE_ACTION_UNSPECIFIED', - self::FIND => 'FIND', - self::DELETE => 'DELETE', - self::COPY => 'COPY', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LoggableAction::class, \Google\Cloud\StorageTransfer\V1\LoggingConfig_LoggableAction::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/LoggingConfig/LoggableActionState.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/LoggingConfig/LoggableActionState.php deleted file mode 100644 index 0547a7be29ad..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/LoggingConfig/LoggableActionState.php +++ /dev/null @@ -1,66 +0,0 @@ -google.storagetransfer.v1.LoggingConfig.LoggableActionState - */ -class LoggableActionState -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum LOGGABLE_ACTION_STATE_UNSPECIFIED = 0; - */ - const LOGGABLE_ACTION_STATE_UNSPECIFIED = 0; - /** - * `LoggableAction` completed successfully. `SUCCEEDED` actions are - * logged as [INFO][google.logging.type.LogSeverity.INFO]. - * - * Generated from protobuf enum SUCCEEDED = 1; - */ - const SUCCEEDED = 1; - /** - * `LoggableAction` terminated in an error state. `FAILED` actions are - * logged as [ERROR][google.logging.type.LogSeverity.ERROR]. - * - * Generated from protobuf enum FAILED = 2; - */ - const FAILED = 2; - - private static $valueToName = [ - self::LOGGABLE_ACTION_STATE_UNSPECIFIED => 'LOGGABLE_ACTION_STATE_UNSPECIFIED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LoggableActionState::class, \Google\Cloud\StorageTransfer\V1\LoggingConfig_LoggableActionState::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions.php deleted file mode 100644 index e1c793ca7909..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions.php +++ /dev/null @@ -1,427 +0,0 @@ -google.storagetransfer.v1.MetadataOptions - */ -class MetadataOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies how symlinks should be handled by the transfer. By default, - * symlinks are not preserved. Only applicable to transfers involving - * POSIX file systems, and ignored for other transfers. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.Symlink symlink = 1; - */ - protected $symlink = 0; - /** - * Specifies how each file's mode attribute should be handled by the transfer. - * By default, mode is not preserved. Only applicable to transfers involving - * POSIX file systems, and ignored for other transfers. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.Mode mode = 2; - */ - protected $mode = 0; - /** - * Specifies how each file's POSIX group ID (GID) attribute should be handled - * by the transfer. By default, GID is not preserved. Only applicable to - * transfers involving POSIX file systems, and ignored for other transfers. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.GID gid = 3; - */ - protected $gid = 0; - /** - * Specifies how each file's POSIX user ID (UID) attribute should be handled - * by the transfer. By default, UID is not preserved. Only applicable to - * transfers involving POSIX file systems, and ignored for other transfers. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.UID uid = 4; - */ - protected $uid = 0; - /** - * Specifies how each object's ACLs should be preserved for transfers between - * Google Cloud Storage buckets. If unspecified, the default behavior is the - * same as ACL_DESTINATION_BUCKET_DEFAULT. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.Acl acl = 5; - */ - protected $acl = 0; - /** - * Specifies the storage class to set on objects being transferred to Google - * Cloud Storage buckets. If unspecified, the default behavior is the same as - * [STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT][google.storagetransfer.v1.MetadataOptions.StorageClass.STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT]. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.StorageClass storage_class = 6; - */ - protected $storage_class = 0; - /** - * Specifies how each object's temporary hold status should be preserved for - * transfers between Google Cloud Storage buckets. If unspecified, the - * default behavior is the same as - * [TEMPORARY_HOLD_PRESERVE][google.storagetransfer.v1.MetadataOptions.TemporaryHold.TEMPORARY_HOLD_PRESERVE]. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.TemporaryHold temporary_hold = 7; - */ - protected $temporary_hold = 0; - /** - * Specifies how each object's Cloud KMS customer-managed encryption key - * (CMEK) is preserved for transfers between Google Cloud Storage buckets. If - * unspecified, the default behavior is the same as - * [KMS_KEY_DESTINATION_BUCKET_DEFAULT][google.storagetransfer.v1.MetadataOptions.KmsKey.KMS_KEY_DESTINATION_BUCKET_DEFAULT]. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.KmsKey kms_key = 8; - */ - protected $kms_key = 0; - /** - * Specifies how each object's `timeCreated` metadata is preserved for - * transfers. If unspecified, the default behavior is the same as - * [TIME_CREATED_SKIP][google.storagetransfer.v1.MetadataOptions.TimeCreated.TIME_CREATED_SKIP]. - * This behavior is supported for transfers to Cloud Storage buckets from - * Cloud Storage, Amazon S3, S3-compatible storage, and Azure sources. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.TimeCreated time_created = 9; - */ - protected $time_created = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $symlink - * Specifies how symlinks should be handled by the transfer. By default, - * symlinks are not preserved. Only applicable to transfers involving - * POSIX file systems, and ignored for other transfers. - * @type int $mode - * Specifies how each file's mode attribute should be handled by the transfer. - * By default, mode is not preserved. Only applicable to transfers involving - * POSIX file systems, and ignored for other transfers. - * @type int $gid - * Specifies how each file's POSIX group ID (GID) attribute should be handled - * by the transfer. By default, GID is not preserved. Only applicable to - * transfers involving POSIX file systems, and ignored for other transfers. - * @type int $uid - * Specifies how each file's POSIX user ID (UID) attribute should be handled - * by the transfer. By default, UID is not preserved. Only applicable to - * transfers involving POSIX file systems, and ignored for other transfers. - * @type int $acl - * Specifies how each object's ACLs should be preserved for transfers between - * Google Cloud Storage buckets. If unspecified, the default behavior is the - * same as ACL_DESTINATION_BUCKET_DEFAULT. - * @type int $storage_class - * Specifies the storage class to set on objects being transferred to Google - * Cloud Storage buckets. If unspecified, the default behavior is the same as - * [STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT][google.storagetransfer.v1.MetadataOptions.StorageClass.STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT]. - * @type int $temporary_hold - * Specifies how each object's temporary hold status should be preserved for - * transfers between Google Cloud Storage buckets. If unspecified, the - * default behavior is the same as - * [TEMPORARY_HOLD_PRESERVE][google.storagetransfer.v1.MetadataOptions.TemporaryHold.TEMPORARY_HOLD_PRESERVE]. - * @type int $kms_key - * Specifies how each object's Cloud KMS customer-managed encryption key - * (CMEK) is preserved for transfers between Google Cloud Storage buckets. If - * unspecified, the default behavior is the same as - * [KMS_KEY_DESTINATION_BUCKET_DEFAULT][google.storagetransfer.v1.MetadataOptions.KmsKey.KMS_KEY_DESTINATION_BUCKET_DEFAULT]. - * @type int $time_created - * Specifies how each object's `timeCreated` metadata is preserved for - * transfers. If unspecified, the default behavior is the same as - * [TIME_CREATED_SKIP][google.storagetransfer.v1.MetadataOptions.TimeCreated.TIME_CREATED_SKIP]. - * This behavior is supported for transfers to Cloud Storage buckets from - * Cloud Storage, Amazon S3, S3-compatible storage, and Azure sources. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Specifies how symlinks should be handled by the transfer. By default, - * symlinks are not preserved. Only applicable to transfers involving - * POSIX file systems, and ignored for other transfers. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.Symlink symlink = 1; - * @return int - */ - public function getSymlink() - { - return $this->symlink; - } - - /** - * Specifies how symlinks should be handled by the transfer. By default, - * symlinks are not preserved. Only applicable to transfers involving - * POSIX file systems, and ignored for other transfers. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.Symlink symlink = 1; - * @param int $var - * @return $this - */ - public function setSymlink($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\StorageTransfer\V1\MetadataOptions\Symlink::class); - $this->symlink = $var; - - return $this; - } - - /** - * Specifies how each file's mode attribute should be handled by the transfer. - * By default, mode is not preserved. Only applicable to transfers involving - * POSIX file systems, and ignored for other transfers. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.Mode mode = 2; - * @return int - */ - public function getMode() - { - return $this->mode; - } - - /** - * Specifies how each file's mode attribute should be handled by the transfer. - * By default, mode is not preserved. Only applicable to transfers involving - * POSIX file systems, and ignored for other transfers. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.Mode mode = 2; - * @param int $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\StorageTransfer\V1\MetadataOptions\Mode::class); - $this->mode = $var; - - return $this; - } - - /** - * Specifies how each file's POSIX group ID (GID) attribute should be handled - * by the transfer. By default, GID is not preserved. Only applicable to - * transfers involving POSIX file systems, and ignored for other transfers. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.GID gid = 3; - * @return int - */ - public function getGid() - { - return $this->gid; - } - - /** - * Specifies how each file's POSIX group ID (GID) attribute should be handled - * by the transfer. By default, GID is not preserved. Only applicable to - * transfers involving POSIX file systems, and ignored for other transfers. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.GID gid = 3; - * @param int $var - * @return $this - */ - public function setGid($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\StorageTransfer\V1\MetadataOptions\GID::class); - $this->gid = $var; - - return $this; - } - - /** - * Specifies how each file's POSIX user ID (UID) attribute should be handled - * by the transfer. By default, UID is not preserved. Only applicable to - * transfers involving POSIX file systems, and ignored for other transfers. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.UID uid = 4; - * @return int - */ - public function getUid() - { - return $this->uid; - } - - /** - * Specifies how each file's POSIX user ID (UID) attribute should be handled - * by the transfer. By default, UID is not preserved. Only applicable to - * transfers involving POSIX file systems, and ignored for other transfers. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.UID uid = 4; - * @param int $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\StorageTransfer\V1\MetadataOptions\UID::class); - $this->uid = $var; - - return $this; - } - - /** - * Specifies how each object's ACLs should be preserved for transfers between - * Google Cloud Storage buckets. If unspecified, the default behavior is the - * same as ACL_DESTINATION_BUCKET_DEFAULT. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.Acl acl = 5; - * @return int - */ - public function getAcl() - { - return $this->acl; - } - - /** - * Specifies how each object's ACLs should be preserved for transfers between - * Google Cloud Storage buckets. If unspecified, the default behavior is the - * same as ACL_DESTINATION_BUCKET_DEFAULT. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.Acl acl = 5; - * @param int $var - * @return $this - */ - public function setAcl($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\StorageTransfer\V1\MetadataOptions\Acl::class); - $this->acl = $var; - - return $this; - } - - /** - * Specifies the storage class to set on objects being transferred to Google - * Cloud Storage buckets. If unspecified, the default behavior is the same as - * [STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT][google.storagetransfer.v1.MetadataOptions.StorageClass.STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT]. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.StorageClass storage_class = 6; - * @return int - */ - public function getStorageClass() - { - return $this->storage_class; - } - - /** - * Specifies the storage class to set on objects being transferred to Google - * Cloud Storage buckets. If unspecified, the default behavior is the same as - * [STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT][google.storagetransfer.v1.MetadataOptions.StorageClass.STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT]. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.StorageClass storage_class = 6; - * @param int $var - * @return $this - */ - public function setStorageClass($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\StorageTransfer\V1\MetadataOptions\StorageClass::class); - $this->storage_class = $var; - - return $this; - } - - /** - * Specifies how each object's temporary hold status should be preserved for - * transfers between Google Cloud Storage buckets. If unspecified, the - * default behavior is the same as - * [TEMPORARY_HOLD_PRESERVE][google.storagetransfer.v1.MetadataOptions.TemporaryHold.TEMPORARY_HOLD_PRESERVE]. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.TemporaryHold temporary_hold = 7; - * @return int - */ - public function getTemporaryHold() - { - return $this->temporary_hold; - } - - /** - * Specifies how each object's temporary hold status should be preserved for - * transfers between Google Cloud Storage buckets. If unspecified, the - * default behavior is the same as - * [TEMPORARY_HOLD_PRESERVE][google.storagetransfer.v1.MetadataOptions.TemporaryHold.TEMPORARY_HOLD_PRESERVE]. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.TemporaryHold temporary_hold = 7; - * @param int $var - * @return $this - */ - public function setTemporaryHold($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\StorageTransfer\V1\MetadataOptions\TemporaryHold::class); - $this->temporary_hold = $var; - - return $this; - } - - /** - * Specifies how each object's Cloud KMS customer-managed encryption key - * (CMEK) is preserved for transfers between Google Cloud Storage buckets. If - * unspecified, the default behavior is the same as - * [KMS_KEY_DESTINATION_BUCKET_DEFAULT][google.storagetransfer.v1.MetadataOptions.KmsKey.KMS_KEY_DESTINATION_BUCKET_DEFAULT]. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.KmsKey kms_key = 8; - * @return int - */ - public function getKmsKey() - { - return $this->kms_key; - } - - /** - * Specifies how each object's Cloud KMS customer-managed encryption key - * (CMEK) is preserved for transfers between Google Cloud Storage buckets. If - * unspecified, the default behavior is the same as - * [KMS_KEY_DESTINATION_BUCKET_DEFAULT][google.storagetransfer.v1.MetadataOptions.KmsKey.KMS_KEY_DESTINATION_BUCKET_DEFAULT]. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.KmsKey kms_key = 8; - * @param int $var - * @return $this - */ - public function setKmsKey($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\StorageTransfer\V1\MetadataOptions\KmsKey::class); - $this->kms_key = $var; - - return $this; - } - - /** - * Specifies how each object's `timeCreated` metadata is preserved for - * transfers. If unspecified, the default behavior is the same as - * [TIME_CREATED_SKIP][google.storagetransfer.v1.MetadataOptions.TimeCreated.TIME_CREATED_SKIP]. - * This behavior is supported for transfers to Cloud Storage buckets from - * Cloud Storage, Amazon S3, S3-compatible storage, and Azure sources. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.TimeCreated time_created = 9; - * @return int - */ - public function getTimeCreated() - { - return $this->time_created; - } - - /** - * Specifies how each object's `timeCreated` metadata is preserved for - * transfers. If unspecified, the default behavior is the same as - * [TIME_CREATED_SKIP][google.storagetransfer.v1.MetadataOptions.TimeCreated.TIME_CREATED_SKIP]. - * This behavior is supported for transfers to Cloud Storage buckets from - * Cloud Storage, Amazon S3, S3-compatible storage, and Azure sources. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions.TimeCreated time_created = 9; - * @param int $var - * @return $this - */ - public function setTimeCreated($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\StorageTransfer\V1\MetadataOptions\TimeCreated::class); - $this->time_created = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/Acl.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/Acl.php deleted file mode 100644 index d9f42c4fe8d2..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/Acl.php +++ /dev/null @@ -1,68 +0,0 @@ -google.storagetransfer.v1.MetadataOptions.Acl - */ -class Acl -{ - /** - * ACL behavior is unspecified. - * - * Generated from protobuf enum ACL_UNSPECIFIED = 0; - */ - const ACL_UNSPECIFIED = 0; - /** - * Use the destination bucket's default object ACLS, if applicable. - * - * Generated from protobuf enum ACL_DESTINATION_BUCKET_DEFAULT = 1; - */ - const ACL_DESTINATION_BUCKET_DEFAULT = 1; - /** - * Preserve the object's original ACLs. This requires the service account - * to have `storage.objects.getIamPolicy` permission for the source object. - * [Uniform bucket-level - * access](https://cloud.google.com/storage/docs/uniform-bucket-level-access) - * must not be enabled on either the source or destination buckets. - * - * Generated from protobuf enum ACL_PRESERVE = 2; - */ - const ACL_PRESERVE = 2; - - private static $valueToName = [ - self::ACL_UNSPECIFIED => 'ACL_UNSPECIFIED', - self::ACL_DESTINATION_BUCKET_DEFAULT => 'ACL_DESTINATION_BUCKET_DEFAULT', - self::ACL_PRESERVE => 'ACL_PRESERVE', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Acl::class, \Google\Cloud\StorageTransfer\V1\MetadataOptions_Acl::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/GID.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/GID.php deleted file mode 100644 index eca202bd832a..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/GID.php +++ /dev/null @@ -1,64 +0,0 @@ -google.storagetransfer.v1.MetadataOptions.GID - */ -class GID -{ - /** - * GID behavior is unspecified. - * - * Generated from protobuf enum GID_UNSPECIFIED = 0; - */ - const GID_UNSPECIFIED = 0; - /** - * Do not preserve GID during a transfer job. - * - * Generated from protobuf enum GID_SKIP = 1; - */ - const GID_SKIP = 1; - /** - * Preserve GID during a transfer job. - * - * Generated from protobuf enum GID_NUMBER = 2; - */ - const GID_NUMBER = 2; - - private static $valueToName = [ - self::GID_UNSPECIFIED => 'GID_UNSPECIFIED', - self::GID_SKIP => 'GID_SKIP', - self::GID_NUMBER => 'GID_NUMBER', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GID::class, \Google\Cloud\StorageTransfer\V1\MetadataOptions_GID::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/KmsKey.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/KmsKey.php deleted file mode 100644 index ff533f92928b..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/KmsKey.php +++ /dev/null @@ -1,66 +0,0 @@ -google.storagetransfer.v1.MetadataOptions.KmsKey - */ -class KmsKey -{ - /** - * KmsKey behavior is unspecified. - * - * Generated from protobuf enum KMS_KEY_UNSPECIFIED = 0; - */ - const KMS_KEY_UNSPECIFIED = 0; - /** - * Use the destination bucket's default encryption settings. - * - * Generated from protobuf enum KMS_KEY_DESTINATION_BUCKET_DEFAULT = 1; - */ - const KMS_KEY_DESTINATION_BUCKET_DEFAULT = 1; - /** - * Preserve the object's original Cloud KMS customer-managed encryption key - * (CMEK) if present. Objects that do not use a Cloud KMS encryption key - * will be encrypted using the destination bucket's encryption settings. - * - * Generated from protobuf enum KMS_KEY_PRESERVE = 2; - */ - const KMS_KEY_PRESERVE = 2; - - private static $valueToName = [ - self::KMS_KEY_UNSPECIFIED => 'KMS_KEY_UNSPECIFIED', - self::KMS_KEY_DESTINATION_BUCKET_DEFAULT => 'KMS_KEY_DESTINATION_BUCKET_DEFAULT', - self::KMS_KEY_PRESERVE => 'KMS_KEY_PRESERVE', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(KmsKey::class, \Google\Cloud\StorageTransfer\V1\MetadataOptions_KmsKey::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/Mode.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/Mode.php deleted file mode 100644 index 4d56f1db1a4d..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/Mode.php +++ /dev/null @@ -1,64 +0,0 @@ -google.storagetransfer.v1.MetadataOptions.Mode - */ -class Mode -{ - /** - * Mode behavior is unspecified. - * - * Generated from protobuf enum MODE_UNSPECIFIED = 0; - */ - const MODE_UNSPECIFIED = 0; - /** - * Do not preserve mode during a transfer job. - * - * Generated from protobuf enum MODE_SKIP = 1; - */ - const MODE_SKIP = 1; - /** - * Preserve mode during a transfer job. - * - * Generated from protobuf enum MODE_PRESERVE = 2; - */ - const MODE_PRESERVE = 2; - - private static $valueToName = [ - self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', - self::MODE_SKIP => 'MODE_SKIP', - self::MODE_PRESERVE => 'MODE_PRESERVE', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Mode::class, \Google\Cloud\StorageTransfer\V1\MetadataOptions_Mode::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/StorageClass.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/StorageClass.php deleted file mode 100644 index 6a74f16c95fd..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/StorageClass.php +++ /dev/null @@ -1,95 +0,0 @@ -google.storagetransfer.v1.MetadataOptions.StorageClass - */ -class StorageClass -{ - /** - * Storage class behavior is unspecified. - * - * Generated from protobuf enum STORAGE_CLASS_UNSPECIFIED = 0; - */ - const STORAGE_CLASS_UNSPECIFIED = 0; - /** - * Use the destination bucket's default storage class. - * - * Generated from protobuf enum STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT = 1; - */ - const STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT = 1; - /** - * Preserve the object's original storage class. This is only supported for - * transfers from Google Cloud Storage buckets. REGIONAL and MULTI_REGIONAL - * storage classes will be mapped to STANDARD to ensure they can be written - * to the destination bucket. - * - * Generated from protobuf enum STORAGE_CLASS_PRESERVE = 2; - */ - const STORAGE_CLASS_PRESERVE = 2; - /** - * Set the storage class to STANDARD. - * - * Generated from protobuf enum STORAGE_CLASS_STANDARD = 3; - */ - const STORAGE_CLASS_STANDARD = 3; - /** - * Set the storage class to NEARLINE. - * - * Generated from protobuf enum STORAGE_CLASS_NEARLINE = 4; - */ - const STORAGE_CLASS_NEARLINE = 4; - /** - * Set the storage class to COLDLINE. - * - * Generated from protobuf enum STORAGE_CLASS_COLDLINE = 5; - */ - const STORAGE_CLASS_COLDLINE = 5; - /** - * Set the storage class to ARCHIVE. - * - * Generated from protobuf enum STORAGE_CLASS_ARCHIVE = 6; - */ - const STORAGE_CLASS_ARCHIVE = 6; - - private static $valueToName = [ - self::STORAGE_CLASS_UNSPECIFIED => 'STORAGE_CLASS_UNSPECIFIED', - self::STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT => 'STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT', - self::STORAGE_CLASS_PRESERVE => 'STORAGE_CLASS_PRESERVE', - self::STORAGE_CLASS_STANDARD => 'STORAGE_CLASS_STANDARD', - self::STORAGE_CLASS_NEARLINE => 'STORAGE_CLASS_NEARLINE', - self::STORAGE_CLASS_COLDLINE => 'STORAGE_CLASS_COLDLINE', - self::STORAGE_CLASS_ARCHIVE => 'STORAGE_CLASS_ARCHIVE', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StorageClass::class, \Google\Cloud\StorageTransfer\V1\MetadataOptions_StorageClass::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/Symlink.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/Symlink.php deleted file mode 100644 index 31c5c5316361..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/Symlink.php +++ /dev/null @@ -1,64 +0,0 @@ -google.storagetransfer.v1.MetadataOptions.Symlink - */ -class Symlink -{ - /** - * Symlink behavior is unspecified. - * - * Generated from protobuf enum SYMLINK_UNSPECIFIED = 0; - */ - const SYMLINK_UNSPECIFIED = 0; - /** - * Do not preserve symlinks during a transfer job. - * - * Generated from protobuf enum SYMLINK_SKIP = 1; - */ - const SYMLINK_SKIP = 1; - /** - * Preserve symlinks during a transfer job. - * - * Generated from protobuf enum SYMLINK_PRESERVE = 2; - */ - const SYMLINK_PRESERVE = 2; - - private static $valueToName = [ - self::SYMLINK_UNSPECIFIED => 'SYMLINK_UNSPECIFIED', - self::SYMLINK_SKIP => 'SYMLINK_SKIP', - self::SYMLINK_PRESERVE => 'SYMLINK_PRESERVE', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Symlink::class, \Google\Cloud\StorageTransfer\V1\MetadataOptions_Symlink::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/TemporaryHold.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/TemporaryHold.php deleted file mode 100644 index 35983ecf3759..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/TemporaryHold.php +++ /dev/null @@ -1,64 +0,0 @@ -google.storagetransfer.v1.MetadataOptions.TemporaryHold - */ -class TemporaryHold -{ - /** - * Temporary hold behavior is unspecified. - * - * Generated from protobuf enum TEMPORARY_HOLD_UNSPECIFIED = 0; - */ - const TEMPORARY_HOLD_UNSPECIFIED = 0; - /** - * Do not set a temporary hold on the destination object. - * - * Generated from protobuf enum TEMPORARY_HOLD_SKIP = 1; - */ - const TEMPORARY_HOLD_SKIP = 1; - /** - * Preserve the object's original temporary hold status. - * - * Generated from protobuf enum TEMPORARY_HOLD_PRESERVE = 2; - */ - const TEMPORARY_HOLD_PRESERVE = 2; - - private static $valueToName = [ - self::TEMPORARY_HOLD_UNSPECIFIED => 'TEMPORARY_HOLD_UNSPECIFIED', - self::TEMPORARY_HOLD_SKIP => 'TEMPORARY_HOLD_SKIP', - self::TEMPORARY_HOLD_PRESERVE => 'TEMPORARY_HOLD_PRESERVE', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TemporaryHold::class, \Google\Cloud\StorageTransfer\V1\MetadataOptions_TemporaryHold::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/TimeCreated.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/TimeCreated.php deleted file mode 100644 index 457c4b7faf2b..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/TimeCreated.php +++ /dev/null @@ -1,68 +0,0 @@ -google.storagetransfer.v1.MetadataOptions.TimeCreated - */ -class TimeCreated -{ - /** - * TimeCreated behavior is unspecified. - * - * Generated from protobuf enum TIME_CREATED_UNSPECIFIED = 0; - */ - const TIME_CREATED_UNSPECIFIED = 0; - /** - * Do not preserve the `timeCreated` metadata from the source object. - * - * Generated from protobuf enum TIME_CREATED_SKIP = 1; - */ - const TIME_CREATED_SKIP = 1; - /** - * Preserves the source object's `timeCreated` or `lastModified` metadata in - * the `customTime` field in the destination object. Note that any value - * stored in the source object's `customTime` field will not be propagated - * to the destination object. - * - * Generated from protobuf enum TIME_CREATED_PRESERVE_AS_CUSTOM_TIME = 2; - */ - const TIME_CREATED_PRESERVE_AS_CUSTOM_TIME = 2; - - private static $valueToName = [ - self::TIME_CREATED_UNSPECIFIED => 'TIME_CREATED_UNSPECIFIED', - self::TIME_CREATED_SKIP => 'TIME_CREATED_SKIP', - self::TIME_CREATED_PRESERVE_AS_CUSTOM_TIME => 'TIME_CREATED_PRESERVE_AS_CUSTOM_TIME', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TimeCreated::class, \Google\Cloud\StorageTransfer\V1\MetadataOptions_TimeCreated::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/UID.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/UID.php deleted file mode 100644 index d0862a23bf76..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/MetadataOptions/UID.php +++ /dev/null @@ -1,64 +0,0 @@ -google.storagetransfer.v1.MetadataOptions.UID - */ -class UID -{ - /** - * UID behavior is unspecified. - * - * Generated from protobuf enum UID_UNSPECIFIED = 0; - */ - const UID_UNSPECIFIED = 0; - /** - * Do not preserve UID during a transfer job. - * - * Generated from protobuf enum UID_SKIP = 1; - */ - const UID_SKIP = 1; - /** - * Preserve UID during a transfer job. - * - * Generated from protobuf enum UID_NUMBER = 2; - */ - const UID_NUMBER = 2; - - private static $valueToName = [ - self::UID_UNSPECIFIED => 'UID_UNSPECIFIED', - self::UID_SKIP => 'UID_SKIP', - self::UID_NUMBER => 'UID_NUMBER', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(UID::class, \Google\Cloud\StorageTransfer\V1\MetadataOptions_UID::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/NotificationConfig.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/NotificationConfig.php deleted file mode 100644 index 93dfdb45a9d1..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/NotificationConfig.php +++ /dev/null @@ -1,170 +0,0 @@ -google.storagetransfer.v1.NotificationConfig - */ -class NotificationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `Topic.name` of the Pub/Sub topic to which to publish - * notifications. Must be of the format: `projects/{project}/topics/{topic}`. - * Not matching this format results in an - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error. - * - * Generated from protobuf field string pubsub_topic = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $pubsub_topic = ''; - /** - * Event types for which a notification is desired. If empty, send - * notifications for all event types. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.NotificationConfig.EventType event_types = 2; - */ - private $event_types; - /** - * Required. The desired format of the notification message payloads. - * - * Generated from protobuf field .google.storagetransfer.v1.NotificationConfig.PayloadFormat payload_format = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $payload_format = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $pubsub_topic - * Required. The `Topic.name` of the Pub/Sub topic to which to publish - * notifications. Must be of the format: `projects/{project}/topics/{topic}`. - * Not matching this format results in an - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error. - * @type array|\Google\Protobuf\Internal\RepeatedField $event_types - * Event types for which a notification is desired. If empty, send - * notifications for all event types. - * @type int $payload_format - * Required. The desired format of the notification message payloads. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `Topic.name` of the Pub/Sub topic to which to publish - * notifications. Must be of the format: `projects/{project}/topics/{topic}`. - * Not matching this format results in an - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error. - * - * Generated from protobuf field string pubsub_topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPubsubTopic() - { - return $this->pubsub_topic; - } - - /** - * Required. The `Topic.name` of the Pub/Sub topic to which to publish - * notifications. Must be of the format: `projects/{project}/topics/{topic}`. - * Not matching this format results in an - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error. - * - * Generated from protobuf field string pubsub_topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPubsubTopic($var) - { - GPBUtil::checkString($var, True); - $this->pubsub_topic = $var; - - return $this; - } - - /** - * Event types for which a notification is desired. If empty, send - * notifications for all event types. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.NotificationConfig.EventType event_types = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEventTypes() - { - return $this->event_types; - } - - /** - * Event types for which a notification is desired. If empty, send - * notifications for all event types. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.NotificationConfig.EventType event_types = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEventTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\StorageTransfer\V1\NotificationConfig\EventType::class); - $this->event_types = $arr; - - return $this; - } - - /** - * Required. The desired format of the notification message payloads. - * - * Generated from protobuf field .google.storagetransfer.v1.NotificationConfig.PayloadFormat payload_format = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getPayloadFormat() - { - return $this->payload_format; - } - - /** - * Required. The desired format of the notification message payloads. - * - * Generated from protobuf field .google.storagetransfer.v1.NotificationConfig.PayloadFormat payload_format = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setPayloadFormat($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\StorageTransfer\V1\NotificationConfig\PayloadFormat::class); - $this->payload_format = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/NotificationConfig/EventType.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/NotificationConfig/EventType.php deleted file mode 100644 index e6de4c39d41c..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/NotificationConfig/EventType.php +++ /dev/null @@ -1,78 +0,0 @@ -google.storagetransfer.v1.NotificationConfig.EventType - */ -class EventType -{ - /** - * Illegal value, to avoid allowing a default. - * - * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; - */ - const EVENT_TYPE_UNSPECIFIED = 0; - /** - * `TransferOperation` completed with status - * [SUCCESS][google.storagetransfer.v1.TransferOperation.Status.SUCCESS]. - * - * Generated from protobuf enum TRANSFER_OPERATION_SUCCESS = 1; - */ - const TRANSFER_OPERATION_SUCCESS = 1; - /** - * `TransferOperation` completed with status - * [FAILED][google.storagetransfer.v1.TransferOperation.Status.FAILED]. - * - * Generated from protobuf enum TRANSFER_OPERATION_FAILED = 2; - */ - const TRANSFER_OPERATION_FAILED = 2; - /** - * `TransferOperation` completed with status - * [ABORTED][google.storagetransfer.v1.TransferOperation.Status.ABORTED]. - * - * Generated from protobuf enum TRANSFER_OPERATION_ABORTED = 3; - */ - const TRANSFER_OPERATION_ABORTED = 3; - - private static $valueToName = [ - self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', - self::TRANSFER_OPERATION_SUCCESS => 'TRANSFER_OPERATION_SUCCESS', - self::TRANSFER_OPERATION_FAILED => 'TRANSFER_OPERATION_FAILED', - self::TRANSFER_OPERATION_ABORTED => 'TRANSFER_OPERATION_ABORTED', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EventType::class, \Google\Cloud\StorageTransfer\V1\NotificationConfig_EventType::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/NotificationConfig/PayloadFormat.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/NotificationConfig/PayloadFormat.php deleted file mode 100644 index 4e63909f0ac1..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/NotificationConfig/PayloadFormat.php +++ /dev/null @@ -1,66 +0,0 @@ -google.storagetransfer.v1.NotificationConfig.PayloadFormat - */ -class PayloadFormat -{ - /** - * Illegal value, to avoid allowing a default. - * - * Generated from protobuf enum PAYLOAD_FORMAT_UNSPECIFIED = 0; - */ - const PAYLOAD_FORMAT_UNSPECIFIED = 0; - /** - * No payload is included with the notification. - * - * Generated from protobuf enum NONE = 1; - */ - const NONE = 1; - /** - * `TransferOperation` is [formatted as a JSON - * response](https://developers.google.com/protocol-buffers/docs/proto3#json), - * in application/json. - * - * Generated from protobuf enum JSON = 2; - */ - const JSON = 2; - - private static $valueToName = [ - self::PAYLOAD_FORMAT_UNSPECIFIED => 'PAYLOAD_FORMAT_UNSPECIFIED', - self::NONE => 'NONE', - self::JSON => 'JSON', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PayloadFormat::class, \Google\Cloud\StorageTransfer\V1\NotificationConfig_PayloadFormat::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ObjectConditions.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ObjectConditions.php deleted file mode 100644 index b979bf3b0bd6..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ObjectConditions.php +++ /dev/null @@ -1,560 +0,0 @@ -google.storagetransfer.v1.ObjectConditions - */ -class ObjectConditions extends \Google\Protobuf\Internal\Message -{ - /** - * Ensures that objects are not transferred until a specific minimum time - * has elapsed after the "last modification time". When a - * [TransferOperation][google.storagetransfer.v1.TransferOperation] begins, - * objects with a "last modification time" are transferred only if the elapsed - * time between the - * [start_time][google.storagetransfer.v1.TransferOperation.start_time] of the - * `TransferOperation` and the "last modification time" of the object is equal - * to or greater than the value of min_time_elapsed_since_last_modification`. - * Objects that do not have a "last modification time" are also transferred. - * - * Generated from protobuf field .google.protobuf.Duration min_time_elapsed_since_last_modification = 1; - */ - protected $min_time_elapsed_since_last_modification = null; - /** - * Ensures that objects are not transferred if a specific maximum time - * has elapsed since the "last modification time". - * When a [TransferOperation][google.storagetransfer.v1.TransferOperation] - * begins, objects with a "last modification time" are transferred only if the - * elapsed time between the - * [start_time][google.storagetransfer.v1.TransferOperation.start_time] of the - * `TransferOperation`and the "last modification time" of the object - * is less than the value of max_time_elapsed_since_last_modification`. - * Objects that do not have a "last modification time" are also transferred. - * - * Generated from protobuf field .google.protobuf.Duration max_time_elapsed_since_last_modification = 2; - */ - protected $max_time_elapsed_since_last_modification = null; - /** - * If you specify `include_prefixes`, Storage Transfer Service uses the items - * in the `include_prefixes` array to determine which objects to include in a - * transfer. Objects must start with one of the matching `include_prefixes` - * for inclusion in the transfer. If - * [exclude_prefixes][google.storagetransfer.v1.ObjectConditions.exclude_prefixes] - * is specified, objects must not start with any of the `exclude_prefixes` - * specified for inclusion in the transfer. - * The following are requirements of `include_prefixes`: - * * Each include-prefix can contain any sequence of Unicode characters, to - * a max length of 1024 bytes when UTF8-encoded, and must not contain - * Carriage Return or Line Feed characters. Wildcard matching and regular - * expression matching are not supported. - * * Each include-prefix must omit the leading slash. For example, to - * include the object `s3://my-aws-bucket/logs/y=2015/requests.gz`, - * specify the include-prefix as `logs/y=2015/requests.gz`. - * * None of the include-prefix values can be empty, if specified. - * * Each include-prefix must include a distinct portion of the object - * namespace. No include-prefix may be a prefix of another - * include-prefix. - * The max size of `include_prefixes` is 1000. - * For more information, see [Filtering objects from - * transfers](/storage-transfer/docs/filtering-objects-from-transfers). - * - * Generated from protobuf field repeated string include_prefixes = 3; - */ - private $include_prefixes; - /** - * If you specify `exclude_prefixes`, Storage Transfer Service uses the items - * in the `exclude_prefixes` array to determine which objects to exclude from - * a transfer. Objects must not start with one of the matching - * `exclude_prefixes` for inclusion in a transfer. - * The following are requirements of `exclude_prefixes`: - * * Each exclude-prefix can contain any sequence of Unicode characters, to - * a max length of 1024 bytes when UTF8-encoded, and must not contain - * Carriage Return or Line Feed characters. Wildcard matching and regular - * expression matching are not supported. - * * Each exclude-prefix must omit the leading slash. For example, to - * exclude the object `s3://my-aws-bucket/logs/y=2015/requests.gz`, - * specify the exclude-prefix as `logs/y=2015/requests.gz`. - * * None of the exclude-prefix values can be empty, if specified. - * * Each exclude-prefix must exclude a distinct portion of the object - * namespace. No exclude-prefix may be a prefix of another - * exclude-prefix. - * * If - * [include_prefixes][google.storagetransfer.v1.ObjectConditions.include_prefixes] - * is specified, then each exclude-prefix must start with the value of a - * path explicitly included by `include_prefixes`. - * The max size of `exclude_prefixes` is 1000. - * For more information, see [Filtering objects from - * transfers](/storage-transfer/docs/filtering-objects-from-transfers). - * - * Generated from protobuf field repeated string exclude_prefixes = 4; - */ - private $exclude_prefixes; - /** - * If specified, only objects with a "last modification time" on or after - * this timestamp and objects that don't have a "last modification time" are - * transferred. - * The `last_modified_since` and `last_modified_before` fields can be used - * together for chunked data processing. For example, consider a script that - * processes each day's worth of data at a time. For that you'd set each - * of the fields as follows: - * * `last_modified_since` to the start of the day - * * `last_modified_before` to the end of the day - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified_since = 5; - */ - protected $last_modified_since = null; - /** - * If specified, only objects with a "last modification time" before this - * timestamp and objects that don't have a "last modification time" are - * transferred. - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified_before = 6; - */ - protected $last_modified_before = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $min_time_elapsed_since_last_modification - * Ensures that objects are not transferred until a specific minimum time - * has elapsed after the "last modification time". When a - * [TransferOperation][google.storagetransfer.v1.TransferOperation] begins, - * objects with a "last modification time" are transferred only if the elapsed - * time between the - * [start_time][google.storagetransfer.v1.TransferOperation.start_time] of the - * `TransferOperation` and the "last modification time" of the object is equal - * to or greater than the value of min_time_elapsed_since_last_modification`. - * Objects that do not have a "last modification time" are also transferred. - * @type \Google\Protobuf\Duration $max_time_elapsed_since_last_modification - * Ensures that objects are not transferred if a specific maximum time - * has elapsed since the "last modification time". - * When a [TransferOperation][google.storagetransfer.v1.TransferOperation] - * begins, objects with a "last modification time" are transferred only if the - * elapsed time between the - * [start_time][google.storagetransfer.v1.TransferOperation.start_time] of the - * `TransferOperation`and the "last modification time" of the object - * is less than the value of max_time_elapsed_since_last_modification`. - * Objects that do not have a "last modification time" are also transferred. - * @type array|\Google\Protobuf\Internal\RepeatedField $include_prefixes - * If you specify `include_prefixes`, Storage Transfer Service uses the items - * in the `include_prefixes` array to determine which objects to include in a - * transfer. Objects must start with one of the matching `include_prefixes` - * for inclusion in the transfer. If - * [exclude_prefixes][google.storagetransfer.v1.ObjectConditions.exclude_prefixes] - * is specified, objects must not start with any of the `exclude_prefixes` - * specified for inclusion in the transfer. - * The following are requirements of `include_prefixes`: - * * Each include-prefix can contain any sequence of Unicode characters, to - * a max length of 1024 bytes when UTF8-encoded, and must not contain - * Carriage Return or Line Feed characters. Wildcard matching and regular - * expression matching are not supported. - * * Each include-prefix must omit the leading slash. For example, to - * include the object `s3://my-aws-bucket/logs/y=2015/requests.gz`, - * specify the include-prefix as `logs/y=2015/requests.gz`. - * * None of the include-prefix values can be empty, if specified. - * * Each include-prefix must include a distinct portion of the object - * namespace. No include-prefix may be a prefix of another - * include-prefix. - * The max size of `include_prefixes` is 1000. - * For more information, see [Filtering objects from - * transfers](/storage-transfer/docs/filtering-objects-from-transfers). - * @type array|\Google\Protobuf\Internal\RepeatedField $exclude_prefixes - * If you specify `exclude_prefixes`, Storage Transfer Service uses the items - * in the `exclude_prefixes` array to determine which objects to exclude from - * a transfer. Objects must not start with one of the matching - * `exclude_prefixes` for inclusion in a transfer. - * The following are requirements of `exclude_prefixes`: - * * Each exclude-prefix can contain any sequence of Unicode characters, to - * a max length of 1024 bytes when UTF8-encoded, and must not contain - * Carriage Return or Line Feed characters. Wildcard matching and regular - * expression matching are not supported. - * * Each exclude-prefix must omit the leading slash. For example, to - * exclude the object `s3://my-aws-bucket/logs/y=2015/requests.gz`, - * specify the exclude-prefix as `logs/y=2015/requests.gz`. - * * None of the exclude-prefix values can be empty, if specified. - * * Each exclude-prefix must exclude a distinct portion of the object - * namespace. No exclude-prefix may be a prefix of another - * exclude-prefix. - * * If - * [include_prefixes][google.storagetransfer.v1.ObjectConditions.include_prefixes] - * is specified, then each exclude-prefix must start with the value of a - * path explicitly included by `include_prefixes`. - * The max size of `exclude_prefixes` is 1000. - * For more information, see [Filtering objects from - * transfers](/storage-transfer/docs/filtering-objects-from-transfers). - * @type \Google\Protobuf\Timestamp $last_modified_since - * If specified, only objects with a "last modification time" on or after - * this timestamp and objects that don't have a "last modification time" are - * transferred. - * The `last_modified_since` and `last_modified_before` fields can be used - * together for chunked data processing. For example, consider a script that - * processes each day's worth of data at a time. For that you'd set each - * of the fields as follows: - * * `last_modified_since` to the start of the day - * * `last_modified_before` to the end of the day - * @type \Google\Protobuf\Timestamp $last_modified_before - * If specified, only objects with a "last modification time" before this - * timestamp and objects that don't have a "last modification time" are - * transferred. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Ensures that objects are not transferred until a specific minimum time - * has elapsed after the "last modification time". When a - * [TransferOperation][google.storagetransfer.v1.TransferOperation] begins, - * objects with a "last modification time" are transferred only if the elapsed - * time between the - * [start_time][google.storagetransfer.v1.TransferOperation.start_time] of the - * `TransferOperation` and the "last modification time" of the object is equal - * to or greater than the value of min_time_elapsed_since_last_modification`. - * Objects that do not have a "last modification time" are also transferred. - * - * Generated from protobuf field .google.protobuf.Duration min_time_elapsed_since_last_modification = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getMinTimeElapsedSinceLastModification() - { - return $this->min_time_elapsed_since_last_modification; - } - - public function hasMinTimeElapsedSinceLastModification() - { - return isset($this->min_time_elapsed_since_last_modification); - } - - public function clearMinTimeElapsedSinceLastModification() - { - unset($this->min_time_elapsed_since_last_modification); - } - - /** - * Ensures that objects are not transferred until a specific minimum time - * has elapsed after the "last modification time". When a - * [TransferOperation][google.storagetransfer.v1.TransferOperation] begins, - * objects with a "last modification time" are transferred only if the elapsed - * time between the - * [start_time][google.storagetransfer.v1.TransferOperation.start_time] of the - * `TransferOperation` and the "last modification time" of the object is equal - * to or greater than the value of min_time_elapsed_since_last_modification`. - * Objects that do not have a "last modification time" are also transferred. - * - * Generated from protobuf field .google.protobuf.Duration min_time_elapsed_since_last_modification = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMinTimeElapsedSinceLastModification($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->min_time_elapsed_since_last_modification = $var; - - return $this; - } - - /** - * Ensures that objects are not transferred if a specific maximum time - * has elapsed since the "last modification time". - * When a [TransferOperation][google.storagetransfer.v1.TransferOperation] - * begins, objects with a "last modification time" are transferred only if the - * elapsed time between the - * [start_time][google.storagetransfer.v1.TransferOperation.start_time] of the - * `TransferOperation`and the "last modification time" of the object - * is less than the value of max_time_elapsed_since_last_modification`. - * Objects that do not have a "last modification time" are also transferred. - * - * Generated from protobuf field .google.protobuf.Duration max_time_elapsed_since_last_modification = 2; - * @return \Google\Protobuf\Duration|null - */ - public function getMaxTimeElapsedSinceLastModification() - { - return $this->max_time_elapsed_since_last_modification; - } - - public function hasMaxTimeElapsedSinceLastModification() - { - return isset($this->max_time_elapsed_since_last_modification); - } - - public function clearMaxTimeElapsedSinceLastModification() - { - unset($this->max_time_elapsed_since_last_modification); - } - - /** - * Ensures that objects are not transferred if a specific maximum time - * has elapsed since the "last modification time". - * When a [TransferOperation][google.storagetransfer.v1.TransferOperation] - * begins, objects with a "last modification time" are transferred only if the - * elapsed time between the - * [start_time][google.storagetransfer.v1.TransferOperation.start_time] of the - * `TransferOperation`and the "last modification time" of the object - * is less than the value of max_time_elapsed_since_last_modification`. - * Objects that do not have a "last modification time" are also transferred. - * - * Generated from protobuf field .google.protobuf.Duration max_time_elapsed_since_last_modification = 2; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMaxTimeElapsedSinceLastModification($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->max_time_elapsed_since_last_modification = $var; - - return $this; - } - - /** - * If you specify `include_prefixes`, Storage Transfer Service uses the items - * in the `include_prefixes` array to determine which objects to include in a - * transfer. Objects must start with one of the matching `include_prefixes` - * for inclusion in the transfer. If - * [exclude_prefixes][google.storagetransfer.v1.ObjectConditions.exclude_prefixes] - * is specified, objects must not start with any of the `exclude_prefixes` - * specified for inclusion in the transfer. - * The following are requirements of `include_prefixes`: - * * Each include-prefix can contain any sequence of Unicode characters, to - * a max length of 1024 bytes when UTF8-encoded, and must not contain - * Carriage Return or Line Feed characters. Wildcard matching and regular - * expression matching are not supported. - * * Each include-prefix must omit the leading slash. For example, to - * include the object `s3://my-aws-bucket/logs/y=2015/requests.gz`, - * specify the include-prefix as `logs/y=2015/requests.gz`. - * * None of the include-prefix values can be empty, if specified. - * * Each include-prefix must include a distinct portion of the object - * namespace. No include-prefix may be a prefix of another - * include-prefix. - * The max size of `include_prefixes` is 1000. - * For more information, see [Filtering objects from - * transfers](/storage-transfer/docs/filtering-objects-from-transfers). - * - * Generated from protobuf field repeated string include_prefixes = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIncludePrefixes() - { - return $this->include_prefixes; - } - - /** - * If you specify `include_prefixes`, Storage Transfer Service uses the items - * in the `include_prefixes` array to determine which objects to include in a - * transfer. Objects must start with one of the matching `include_prefixes` - * for inclusion in the transfer. If - * [exclude_prefixes][google.storagetransfer.v1.ObjectConditions.exclude_prefixes] - * is specified, objects must not start with any of the `exclude_prefixes` - * specified for inclusion in the transfer. - * The following are requirements of `include_prefixes`: - * * Each include-prefix can contain any sequence of Unicode characters, to - * a max length of 1024 bytes when UTF8-encoded, and must not contain - * Carriage Return or Line Feed characters. Wildcard matching and regular - * expression matching are not supported. - * * Each include-prefix must omit the leading slash. For example, to - * include the object `s3://my-aws-bucket/logs/y=2015/requests.gz`, - * specify the include-prefix as `logs/y=2015/requests.gz`. - * * None of the include-prefix values can be empty, if specified. - * * Each include-prefix must include a distinct portion of the object - * namespace. No include-prefix may be a prefix of another - * include-prefix. - * The max size of `include_prefixes` is 1000. - * For more information, see [Filtering objects from - * transfers](/storage-transfer/docs/filtering-objects-from-transfers). - * - * Generated from protobuf field repeated string include_prefixes = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIncludePrefixes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->include_prefixes = $arr; - - return $this; - } - - /** - * If you specify `exclude_prefixes`, Storage Transfer Service uses the items - * in the `exclude_prefixes` array to determine which objects to exclude from - * a transfer. Objects must not start with one of the matching - * `exclude_prefixes` for inclusion in a transfer. - * The following are requirements of `exclude_prefixes`: - * * Each exclude-prefix can contain any sequence of Unicode characters, to - * a max length of 1024 bytes when UTF8-encoded, and must not contain - * Carriage Return or Line Feed characters. Wildcard matching and regular - * expression matching are not supported. - * * Each exclude-prefix must omit the leading slash. For example, to - * exclude the object `s3://my-aws-bucket/logs/y=2015/requests.gz`, - * specify the exclude-prefix as `logs/y=2015/requests.gz`. - * * None of the exclude-prefix values can be empty, if specified. - * * Each exclude-prefix must exclude a distinct portion of the object - * namespace. No exclude-prefix may be a prefix of another - * exclude-prefix. - * * If - * [include_prefixes][google.storagetransfer.v1.ObjectConditions.include_prefixes] - * is specified, then each exclude-prefix must start with the value of a - * path explicitly included by `include_prefixes`. - * The max size of `exclude_prefixes` is 1000. - * For more information, see [Filtering objects from - * transfers](/storage-transfer/docs/filtering-objects-from-transfers). - * - * Generated from protobuf field repeated string exclude_prefixes = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExcludePrefixes() - { - return $this->exclude_prefixes; - } - - /** - * If you specify `exclude_prefixes`, Storage Transfer Service uses the items - * in the `exclude_prefixes` array to determine which objects to exclude from - * a transfer. Objects must not start with one of the matching - * `exclude_prefixes` for inclusion in a transfer. - * The following are requirements of `exclude_prefixes`: - * * Each exclude-prefix can contain any sequence of Unicode characters, to - * a max length of 1024 bytes when UTF8-encoded, and must not contain - * Carriage Return or Line Feed characters. Wildcard matching and regular - * expression matching are not supported. - * * Each exclude-prefix must omit the leading slash. For example, to - * exclude the object `s3://my-aws-bucket/logs/y=2015/requests.gz`, - * specify the exclude-prefix as `logs/y=2015/requests.gz`. - * * None of the exclude-prefix values can be empty, if specified. - * * Each exclude-prefix must exclude a distinct portion of the object - * namespace. No exclude-prefix may be a prefix of another - * exclude-prefix. - * * If - * [include_prefixes][google.storagetransfer.v1.ObjectConditions.include_prefixes] - * is specified, then each exclude-prefix must start with the value of a - * path explicitly included by `include_prefixes`. - * The max size of `exclude_prefixes` is 1000. - * For more information, see [Filtering objects from - * transfers](/storage-transfer/docs/filtering-objects-from-transfers). - * - * Generated from protobuf field repeated string exclude_prefixes = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExcludePrefixes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->exclude_prefixes = $arr; - - return $this; - } - - /** - * If specified, only objects with a "last modification time" on or after - * this timestamp and objects that don't have a "last modification time" are - * transferred. - * The `last_modified_since` and `last_modified_before` fields can be used - * together for chunked data processing. For example, consider a script that - * processes each day's worth of data at a time. For that you'd set each - * of the fields as follows: - * * `last_modified_since` to the start of the day - * * `last_modified_before` to the end of the day - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified_since = 5; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastModifiedSince() - { - return $this->last_modified_since; - } - - public function hasLastModifiedSince() - { - return isset($this->last_modified_since); - } - - public function clearLastModifiedSince() - { - unset($this->last_modified_since); - } - - /** - * If specified, only objects with a "last modification time" on or after - * this timestamp and objects that don't have a "last modification time" are - * transferred. - * The `last_modified_since` and `last_modified_before` fields can be used - * together for chunked data processing. For example, consider a script that - * processes each day's worth of data at a time. For that you'd set each - * of the fields as follows: - * * `last_modified_since` to the start of the day - * * `last_modified_before` to the end of the day - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified_since = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastModifiedSince($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_modified_since = $var; - - return $this; - } - - /** - * If specified, only objects with a "last modification time" before this - * timestamp and objects that don't have a "last modification time" are - * transferred. - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified_before = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastModifiedBefore() - { - return $this->last_modified_before; - } - - public function hasLastModifiedBefore() - { - return isset($this->last_modified_before); - } - - public function clearLastModifiedBefore() - { - unset($this->last_modified_before); - } - - /** - * If specified, only objects with a "last modification time" before this - * timestamp and objects that don't have a "last modification time" are - * transferred. - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified_before = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastModifiedBefore($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_modified_before = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/PauseTransferOperationRequest.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/PauseTransferOperationRequest.php deleted file mode 100644 index 2c1d3fd5061c..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/PauseTransferOperationRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.storagetransfer.v1.PauseTransferOperationRequest - */ -class PauseTransferOperationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the transfer operation. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the transfer operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\Transfer::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the transfer operation. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the transfer operation. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/PosixFilesystem.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/PosixFilesystem.php deleted file mode 100644 index 9548f9724538..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/PosixFilesystem.php +++ /dev/null @@ -1,67 +0,0 @@ -google.storagetransfer.v1.PosixFilesystem - */ -class PosixFilesystem extends \Google\Protobuf\Internal\Message -{ - /** - * Root directory path to the filesystem. - * - * Generated from protobuf field string root_directory = 1; - */ - protected $root_directory = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $root_directory - * Root directory path to the filesystem. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Root directory path to the filesystem. - * - * Generated from protobuf field string root_directory = 1; - * @return string - */ - public function getRootDirectory() - { - return $this->root_directory; - } - - /** - * Root directory path to the filesystem. - * - * Generated from protobuf field string root_directory = 1; - * @param string $var - * @return $this - */ - public function setRootDirectory($var) - { - GPBUtil::checkString($var, True); - $this->root_directory = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ResumeTransferOperationRequest.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ResumeTransferOperationRequest.php deleted file mode 100644 index b3eec9a2595b..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/ResumeTransferOperationRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.storagetransfer.v1.ResumeTransferOperationRequest - */ -class ResumeTransferOperationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the transfer operation. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the transfer operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\Transfer::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the transfer operation. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the transfer operation. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/RunTransferJobRequest.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/RunTransferJobRequest.php deleted file mode 100644 index c38e28cd7784..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/RunTransferJobRequest.php +++ /dev/null @@ -1,105 +0,0 @@ -google.storagetransfer.v1.RunTransferJobRequest - */ -class RunTransferJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the transfer job. - * - * Generated from protobuf field string job_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $job_name = ''; - /** - * Required. The ID of the Google Cloud project that owns the transfer - * job. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $job_name - * Required. The name of the transfer job. - * @type string $project_id - * Required. The ID of the Google Cloud project that owns the transfer - * job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\Transfer::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the transfer job. - * - * Generated from protobuf field string job_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getJobName() - { - return $this->job_name; - } - - /** - * Required. The name of the transfer job. - * - * Generated from protobuf field string job_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setJobName($var) - { - GPBUtil::checkString($var, True); - $this->job_name = $var; - - return $this; - } - - /** - * Required. The ID of the Google Cloud project that owns the transfer - * job. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the Google Cloud project that owns the transfer - * job. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata.php deleted file mode 100644 index 701406b66fc8..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata.php +++ /dev/null @@ -1,194 +0,0 @@ -google.storagetransfer.v1.S3CompatibleMetadata - */ -class S3CompatibleMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies the authentication and authorization method used by the storage - * service. When not specified, Transfer Service will attempt to determine - * right auth method to use. - * - * Generated from protobuf field .google.storagetransfer.v1.S3CompatibleMetadata.AuthMethod auth_method = 1; - */ - protected $auth_method = 0; - /** - * Specifies the API request model used to call the storage service. When not - * specified, the default value of RequestModel - * REQUEST_MODEL_VIRTUAL_HOSTED_STYLE is used. - * - * Generated from protobuf field .google.storagetransfer.v1.S3CompatibleMetadata.RequestModel request_model = 2; - */ - protected $request_model = 0; - /** - * Specifies the network protocol of the agent. When not specified, the - * default value of NetworkProtocol NETWORK_PROTOCOL_HTTPS is used. - * - * Generated from protobuf field .google.storagetransfer.v1.S3CompatibleMetadata.NetworkProtocol protocol = 3; - */ - protected $protocol = 0; - /** - * The Listing API to use for discovering objects. When not specified, - * Transfer Service will attempt to determine the right API to use. - * - * Generated from protobuf field .google.storagetransfer.v1.S3CompatibleMetadata.ListApi list_api = 4; - */ - protected $list_api = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $auth_method - * Specifies the authentication and authorization method used by the storage - * service. When not specified, Transfer Service will attempt to determine - * right auth method to use. - * @type int $request_model - * Specifies the API request model used to call the storage service. When not - * specified, the default value of RequestModel - * REQUEST_MODEL_VIRTUAL_HOSTED_STYLE is used. - * @type int $protocol - * Specifies the network protocol of the agent. When not specified, the - * default value of NetworkProtocol NETWORK_PROTOCOL_HTTPS is used. - * @type int $list_api - * The Listing API to use for discovering objects. When not specified, - * Transfer Service will attempt to determine the right API to use. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Specifies the authentication and authorization method used by the storage - * service. When not specified, Transfer Service will attempt to determine - * right auth method to use. - * - * Generated from protobuf field .google.storagetransfer.v1.S3CompatibleMetadata.AuthMethod auth_method = 1; - * @return int - */ - public function getAuthMethod() - { - return $this->auth_method; - } - - /** - * Specifies the authentication and authorization method used by the storage - * service. When not specified, Transfer Service will attempt to determine - * right auth method to use. - * - * Generated from protobuf field .google.storagetransfer.v1.S3CompatibleMetadata.AuthMethod auth_method = 1; - * @param int $var - * @return $this - */ - public function setAuthMethod($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\StorageTransfer\V1\S3CompatibleMetadata\AuthMethod::class); - $this->auth_method = $var; - - return $this; - } - - /** - * Specifies the API request model used to call the storage service. When not - * specified, the default value of RequestModel - * REQUEST_MODEL_VIRTUAL_HOSTED_STYLE is used. - * - * Generated from protobuf field .google.storagetransfer.v1.S3CompatibleMetadata.RequestModel request_model = 2; - * @return int - */ - public function getRequestModel() - { - return $this->request_model; - } - - /** - * Specifies the API request model used to call the storage service. When not - * specified, the default value of RequestModel - * REQUEST_MODEL_VIRTUAL_HOSTED_STYLE is used. - * - * Generated from protobuf field .google.storagetransfer.v1.S3CompatibleMetadata.RequestModel request_model = 2; - * @param int $var - * @return $this - */ - public function setRequestModel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\StorageTransfer\V1\S3CompatibleMetadata\RequestModel::class); - $this->request_model = $var; - - return $this; - } - - /** - * Specifies the network protocol of the agent. When not specified, the - * default value of NetworkProtocol NETWORK_PROTOCOL_HTTPS is used. - * - * Generated from protobuf field .google.storagetransfer.v1.S3CompatibleMetadata.NetworkProtocol protocol = 3; - * @return int - */ - public function getProtocol() - { - return $this->protocol; - } - - /** - * Specifies the network protocol of the agent. When not specified, the - * default value of NetworkProtocol NETWORK_PROTOCOL_HTTPS is used. - * - * Generated from protobuf field .google.storagetransfer.v1.S3CompatibleMetadata.NetworkProtocol protocol = 3; - * @param int $var - * @return $this - */ - public function setProtocol($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\StorageTransfer\V1\S3CompatibleMetadata\NetworkProtocol::class); - $this->protocol = $var; - - return $this; - } - - /** - * The Listing API to use for discovering objects. When not specified, - * Transfer Service will attempt to determine the right API to use. - * - * Generated from protobuf field .google.storagetransfer.v1.S3CompatibleMetadata.ListApi list_api = 4; - * @return int - */ - public function getListApi() - { - return $this->list_api; - } - - /** - * The Listing API to use for discovering objects. When not specified, - * Transfer Service will attempt to determine the right API to use. - * - * Generated from protobuf field .google.storagetransfer.v1.S3CompatibleMetadata.ListApi list_api = 4; - * @param int $var - * @return $this - */ - public function setListApi($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\StorageTransfer\V1\S3CompatibleMetadata\ListApi::class); - $this->list_api = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata/AuthMethod.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata/AuthMethod.php deleted file mode 100644 index bce457c3194c..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata/AuthMethod.php +++ /dev/null @@ -1,64 +0,0 @@ -google.storagetransfer.v1.S3CompatibleMetadata.AuthMethod - */ -class AuthMethod -{ - /** - * AuthMethod is not specified. - * - * Generated from protobuf enum AUTH_METHOD_UNSPECIFIED = 0; - */ - const AUTH_METHOD_UNSPECIFIED = 0; - /** - * Auth requests with AWS SigV4. - * - * Generated from protobuf enum AUTH_METHOD_AWS_SIGNATURE_V4 = 1; - */ - const AUTH_METHOD_AWS_SIGNATURE_V4 = 1; - /** - * Auth requests with AWS SigV2. - * - * Generated from protobuf enum AUTH_METHOD_AWS_SIGNATURE_V2 = 2; - */ - const AUTH_METHOD_AWS_SIGNATURE_V2 = 2; - - private static $valueToName = [ - self::AUTH_METHOD_UNSPECIFIED => 'AUTH_METHOD_UNSPECIFIED', - self::AUTH_METHOD_AWS_SIGNATURE_V4 => 'AUTH_METHOD_AWS_SIGNATURE_V4', - self::AUTH_METHOD_AWS_SIGNATURE_V2 => 'AUTH_METHOD_AWS_SIGNATURE_V2', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AuthMethod::class, \Google\Cloud\StorageTransfer\V1\S3CompatibleMetadata_AuthMethod::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata/ListApi.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata/ListApi.php deleted file mode 100644 index 62d307b60946..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata/ListApi.php +++ /dev/null @@ -1,64 +0,0 @@ -google.storagetransfer.v1.S3CompatibleMetadata.ListApi - */ -class ListApi -{ - /** - * ListApi is not specified. - * - * Generated from protobuf enum LIST_API_UNSPECIFIED = 0; - */ - const LIST_API_UNSPECIFIED = 0; - /** - * Perform listing using ListObjectsV2 API. - * - * Generated from protobuf enum LIST_OBJECTS_V2 = 1; - */ - const LIST_OBJECTS_V2 = 1; - /** - * Legacy ListObjects API. - * - * Generated from protobuf enum LIST_OBJECTS = 2; - */ - const LIST_OBJECTS = 2; - - private static $valueToName = [ - self::LIST_API_UNSPECIFIED => 'LIST_API_UNSPECIFIED', - self::LIST_OBJECTS_V2 => 'LIST_OBJECTS_V2', - self::LIST_OBJECTS => 'LIST_OBJECTS', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ListApi::class, \Google\Cloud\StorageTransfer\V1\S3CompatibleMetadata_ListApi::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata/NetworkProtocol.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata/NetworkProtocol.php deleted file mode 100644 index 29c2e7d6a416..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata/NetworkProtocol.php +++ /dev/null @@ -1,66 +0,0 @@ -google.storagetransfer.v1.S3CompatibleMetadata.NetworkProtocol - */ -class NetworkProtocol -{ - /** - * NetworkProtocol is not specified. - * - * Generated from protobuf enum NETWORK_PROTOCOL_UNSPECIFIED = 0; - */ - const NETWORK_PROTOCOL_UNSPECIFIED = 0; - /** - * Perform requests using HTTPS. - * - * Generated from protobuf enum NETWORK_PROTOCOL_HTTPS = 1; - */ - const NETWORK_PROTOCOL_HTTPS = 1; - /** - * Not recommended: This sends data in clear-text. This is only - * appropriate within a closed network or for publicly available data. - * Perform requests using HTTP. - * - * Generated from protobuf enum NETWORK_PROTOCOL_HTTP = 2; - */ - const NETWORK_PROTOCOL_HTTP = 2; - - private static $valueToName = [ - self::NETWORK_PROTOCOL_UNSPECIFIED => 'NETWORK_PROTOCOL_UNSPECIFIED', - self::NETWORK_PROTOCOL_HTTPS => 'NETWORK_PROTOCOL_HTTPS', - self::NETWORK_PROTOCOL_HTTP => 'NETWORK_PROTOCOL_HTTP', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NetworkProtocol::class, \Google\Cloud\StorageTransfer\V1\S3CompatibleMetadata_NetworkProtocol::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata/RequestModel.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata/RequestModel.php deleted file mode 100644 index 832494b6d409..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/S3CompatibleMetadata/RequestModel.php +++ /dev/null @@ -1,66 +0,0 @@ -google.storagetransfer.v1.S3CompatibleMetadata.RequestModel - */ -class RequestModel -{ - /** - * RequestModel is not specified. - * - * Generated from protobuf enum REQUEST_MODEL_UNSPECIFIED = 0; - */ - const REQUEST_MODEL_UNSPECIFIED = 0; - /** - * Perform requests using Virtual Hosted Style. - * Example: https://bucket-name.s3.region.amazonaws.com/key-name - * - * Generated from protobuf enum REQUEST_MODEL_VIRTUAL_HOSTED_STYLE = 1; - */ - const REQUEST_MODEL_VIRTUAL_HOSTED_STYLE = 1; - /** - * Perform requests using Path Style. - * Example: https://s3.region.amazonaws.com/bucket-name/key-name - * - * Generated from protobuf enum REQUEST_MODEL_PATH_STYLE = 2; - */ - const REQUEST_MODEL_PATH_STYLE = 2; - - private static $valueToName = [ - self::REQUEST_MODEL_UNSPECIFIED => 'REQUEST_MODEL_UNSPECIFIED', - self::REQUEST_MODEL_VIRTUAL_HOSTED_STYLE => 'REQUEST_MODEL_VIRTUAL_HOSTED_STYLE', - self::REQUEST_MODEL_PATH_STYLE => 'REQUEST_MODEL_PATH_STYLE', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RequestModel::class, \Google\Cloud\StorageTransfer\V1\S3CompatibleMetadata_RequestModel::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/Schedule.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/Schedule.php deleted file mode 100644 index 29c271a20bcf..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/Schedule.php +++ /dev/null @@ -1,441 +0,0 @@ -google.storagetransfer.v1.Schedule - */ -class Schedule extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The start date of a transfer. Date boundaries are determined - * relative to UTC time. If `schedule_start_date` and - * [start_time_of_day][google.storagetransfer.v1.Schedule.start_time_of_day] - * are in the past relative to the job's creation time, the transfer starts - * the day after you schedule the transfer request. - * **Note:** When starting jobs at or near midnight UTC it is possible that - * a job starts later than expected. For example, if you send an outbound - * request on June 1 one millisecond prior to midnight UTC and the Storage - * Transfer Service server receives the request on June 2, then it creates - * a TransferJob with `schedule_start_date` set to June 2 and a - * `start_time_of_day` set to midnight UTC. The first scheduled - * [TransferOperation][google.storagetransfer.v1.TransferOperation] takes - * place on June 3 at midnight UTC. - * - * Generated from protobuf field .google.type.Date schedule_start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $schedule_start_date = null; - /** - * The last day a transfer runs. Date boundaries are determined relative to - * UTC time. A job runs once per 24 hours within the following guidelines: - * * If `schedule_end_date` and - * [schedule_start_date][google.storagetransfer.v1.Schedule.schedule_start_date] - * are the same and in - * the future relative to UTC, the transfer is executed only one time. - * * If `schedule_end_date` is later than `schedule_start_date` and - * `schedule_end_date` is in the future relative to UTC, the job runs each - * day at - * [start_time_of_day][google.storagetransfer.v1.Schedule.start_time_of_day] - * through `schedule_end_date`. - * - * Generated from protobuf field .google.type.Date schedule_end_date = 2; - */ - protected $schedule_end_date = null; - /** - * The time in UTC that a transfer job is scheduled to run. Transfers may - * start later than this time. - * If `start_time_of_day` is not specified: - * * One-time transfers run immediately. - * * Recurring transfers run immediately, and each day at midnight UTC, - * through - * [schedule_end_date][google.storagetransfer.v1.Schedule.schedule_end_date]. - * If `start_time_of_day` is specified: - * * One-time transfers run at the specified time. - * * Recurring transfers run at the specified time each day, through - * `schedule_end_date`. - * - * Generated from protobuf field .google.type.TimeOfDay start_time_of_day = 3; - */ - protected $start_time_of_day = null; - /** - * The time in UTC that no further transfer operations are scheduled. Combined - * with - * [schedule_end_date][google.storagetransfer.v1.Schedule.schedule_end_date], - * `end_time_of_day` specifies the end date and time for starting new transfer - * operations. This field must be greater than or equal to the timestamp - * corresponding to the combintation of - * [schedule_start_date][google.storagetransfer.v1.Schedule.schedule_start_date] - * and - * [start_time_of_day][google.storagetransfer.v1.Schedule.start_time_of_day], - * and is subject to the following: - * * If `end_time_of_day` is not set and `schedule_end_date` is set, then - * a default value of `23:59:59` is used for `end_time_of_day`. - * * If `end_time_of_day` is set and `schedule_end_date` is not set, then - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] is returned. - * - * Generated from protobuf field .google.type.TimeOfDay end_time_of_day = 4; - */ - protected $end_time_of_day = null; - /** - * Interval between the start of each scheduled TransferOperation. If - * unspecified, the default value is 24 hours. This value may not be less than - * 1 hour. - * - * Generated from protobuf field .google.protobuf.Duration repeat_interval = 5; - */ - protected $repeat_interval = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\Date $schedule_start_date - * Required. The start date of a transfer. Date boundaries are determined - * relative to UTC time. If `schedule_start_date` and - * [start_time_of_day][google.storagetransfer.v1.Schedule.start_time_of_day] - * are in the past relative to the job's creation time, the transfer starts - * the day after you schedule the transfer request. - * **Note:** When starting jobs at or near midnight UTC it is possible that - * a job starts later than expected. For example, if you send an outbound - * request on June 1 one millisecond prior to midnight UTC and the Storage - * Transfer Service server receives the request on June 2, then it creates - * a TransferJob with `schedule_start_date` set to June 2 and a - * `start_time_of_day` set to midnight UTC. The first scheduled - * [TransferOperation][google.storagetransfer.v1.TransferOperation] takes - * place on June 3 at midnight UTC. - * @type \Google\Type\Date $schedule_end_date - * The last day a transfer runs. Date boundaries are determined relative to - * UTC time. A job runs once per 24 hours within the following guidelines: - * * If `schedule_end_date` and - * [schedule_start_date][google.storagetransfer.v1.Schedule.schedule_start_date] - * are the same and in - * the future relative to UTC, the transfer is executed only one time. - * * If `schedule_end_date` is later than `schedule_start_date` and - * `schedule_end_date` is in the future relative to UTC, the job runs each - * day at - * [start_time_of_day][google.storagetransfer.v1.Schedule.start_time_of_day] - * through `schedule_end_date`. - * @type \Google\Type\TimeOfDay $start_time_of_day - * The time in UTC that a transfer job is scheduled to run. Transfers may - * start later than this time. - * If `start_time_of_day` is not specified: - * * One-time transfers run immediately. - * * Recurring transfers run immediately, and each day at midnight UTC, - * through - * [schedule_end_date][google.storagetransfer.v1.Schedule.schedule_end_date]. - * If `start_time_of_day` is specified: - * * One-time transfers run at the specified time. - * * Recurring transfers run at the specified time each day, through - * `schedule_end_date`. - * @type \Google\Type\TimeOfDay $end_time_of_day - * The time in UTC that no further transfer operations are scheduled. Combined - * with - * [schedule_end_date][google.storagetransfer.v1.Schedule.schedule_end_date], - * `end_time_of_day` specifies the end date and time for starting new transfer - * operations. This field must be greater than or equal to the timestamp - * corresponding to the combintation of - * [schedule_start_date][google.storagetransfer.v1.Schedule.schedule_start_date] - * and - * [start_time_of_day][google.storagetransfer.v1.Schedule.start_time_of_day], - * and is subject to the following: - * * If `end_time_of_day` is not set and `schedule_end_date` is set, then - * a default value of `23:59:59` is used for `end_time_of_day`. - * * If `end_time_of_day` is set and `schedule_end_date` is not set, then - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] is returned. - * @type \Google\Protobuf\Duration $repeat_interval - * Interval between the start of each scheduled TransferOperation. If - * unspecified, the default value is 24 hours. This value may not be less than - * 1 hour. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Required. The start date of a transfer. Date boundaries are determined - * relative to UTC time. If `schedule_start_date` and - * [start_time_of_day][google.storagetransfer.v1.Schedule.start_time_of_day] - * are in the past relative to the job's creation time, the transfer starts - * the day after you schedule the transfer request. - * **Note:** When starting jobs at or near midnight UTC it is possible that - * a job starts later than expected. For example, if you send an outbound - * request on June 1 one millisecond prior to midnight UTC and the Storage - * Transfer Service server receives the request on June 2, then it creates - * a TransferJob with `schedule_start_date` set to June 2 and a - * `start_time_of_day` set to midnight UTC. The first scheduled - * [TransferOperation][google.storagetransfer.v1.TransferOperation] takes - * place on June 3 at midnight UTC. - * - * Generated from protobuf field .google.type.Date schedule_start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Type\Date|null - */ - public function getScheduleStartDate() - { - return $this->schedule_start_date; - } - - public function hasScheduleStartDate() - { - return isset($this->schedule_start_date); - } - - public function clearScheduleStartDate() - { - unset($this->schedule_start_date); - } - - /** - * Required. The start date of a transfer. Date boundaries are determined - * relative to UTC time. If `schedule_start_date` and - * [start_time_of_day][google.storagetransfer.v1.Schedule.start_time_of_day] - * are in the past relative to the job's creation time, the transfer starts - * the day after you schedule the transfer request. - * **Note:** When starting jobs at or near midnight UTC it is possible that - * a job starts later than expected. For example, if you send an outbound - * request on June 1 one millisecond prior to midnight UTC and the Storage - * Transfer Service server receives the request on June 2, then it creates - * a TransferJob with `schedule_start_date` set to June 2 and a - * `start_time_of_day` set to midnight UTC. The first scheduled - * [TransferOperation][google.storagetransfer.v1.TransferOperation] takes - * place on June 3 at midnight UTC. - * - * Generated from protobuf field .google.type.Date schedule_start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Type\Date $var - * @return $this - */ - public function setScheduleStartDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->schedule_start_date = $var; - - return $this; - } - - /** - * The last day a transfer runs. Date boundaries are determined relative to - * UTC time. A job runs once per 24 hours within the following guidelines: - * * If `schedule_end_date` and - * [schedule_start_date][google.storagetransfer.v1.Schedule.schedule_start_date] - * are the same and in - * the future relative to UTC, the transfer is executed only one time. - * * If `schedule_end_date` is later than `schedule_start_date` and - * `schedule_end_date` is in the future relative to UTC, the job runs each - * day at - * [start_time_of_day][google.storagetransfer.v1.Schedule.start_time_of_day] - * through `schedule_end_date`. - * - * Generated from protobuf field .google.type.Date schedule_end_date = 2; - * @return \Google\Type\Date|null - */ - public function getScheduleEndDate() - { - return $this->schedule_end_date; - } - - public function hasScheduleEndDate() - { - return isset($this->schedule_end_date); - } - - public function clearScheduleEndDate() - { - unset($this->schedule_end_date); - } - - /** - * The last day a transfer runs. Date boundaries are determined relative to - * UTC time. A job runs once per 24 hours within the following guidelines: - * * If `schedule_end_date` and - * [schedule_start_date][google.storagetransfer.v1.Schedule.schedule_start_date] - * are the same and in - * the future relative to UTC, the transfer is executed only one time. - * * If `schedule_end_date` is later than `schedule_start_date` and - * `schedule_end_date` is in the future relative to UTC, the job runs each - * day at - * [start_time_of_day][google.storagetransfer.v1.Schedule.start_time_of_day] - * through `schedule_end_date`. - * - * Generated from protobuf field .google.type.Date schedule_end_date = 2; - * @param \Google\Type\Date $var - * @return $this - */ - public function setScheduleEndDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->schedule_end_date = $var; - - return $this; - } - - /** - * The time in UTC that a transfer job is scheduled to run. Transfers may - * start later than this time. - * If `start_time_of_day` is not specified: - * * One-time transfers run immediately. - * * Recurring transfers run immediately, and each day at midnight UTC, - * through - * [schedule_end_date][google.storagetransfer.v1.Schedule.schedule_end_date]. - * If `start_time_of_day` is specified: - * * One-time transfers run at the specified time. - * * Recurring transfers run at the specified time each day, through - * `schedule_end_date`. - * - * Generated from protobuf field .google.type.TimeOfDay start_time_of_day = 3; - * @return \Google\Type\TimeOfDay|null - */ - public function getStartTimeOfDay() - { - return $this->start_time_of_day; - } - - public function hasStartTimeOfDay() - { - return isset($this->start_time_of_day); - } - - public function clearStartTimeOfDay() - { - unset($this->start_time_of_day); - } - - /** - * The time in UTC that a transfer job is scheduled to run. Transfers may - * start later than this time. - * If `start_time_of_day` is not specified: - * * One-time transfers run immediately. - * * Recurring transfers run immediately, and each day at midnight UTC, - * through - * [schedule_end_date][google.storagetransfer.v1.Schedule.schedule_end_date]. - * If `start_time_of_day` is specified: - * * One-time transfers run at the specified time. - * * Recurring transfers run at the specified time each day, through - * `schedule_end_date`. - * - * Generated from protobuf field .google.type.TimeOfDay start_time_of_day = 3; - * @param \Google\Type\TimeOfDay $var - * @return $this - */ - public function setStartTimeOfDay($var) - { - GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); - $this->start_time_of_day = $var; - - return $this; - } - - /** - * The time in UTC that no further transfer operations are scheduled. Combined - * with - * [schedule_end_date][google.storagetransfer.v1.Schedule.schedule_end_date], - * `end_time_of_day` specifies the end date and time for starting new transfer - * operations. This field must be greater than or equal to the timestamp - * corresponding to the combintation of - * [schedule_start_date][google.storagetransfer.v1.Schedule.schedule_start_date] - * and - * [start_time_of_day][google.storagetransfer.v1.Schedule.start_time_of_day], - * and is subject to the following: - * * If `end_time_of_day` is not set and `schedule_end_date` is set, then - * a default value of `23:59:59` is used for `end_time_of_day`. - * * If `end_time_of_day` is set and `schedule_end_date` is not set, then - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] is returned. - * - * Generated from protobuf field .google.type.TimeOfDay end_time_of_day = 4; - * @return \Google\Type\TimeOfDay|null - */ - public function getEndTimeOfDay() - { - return $this->end_time_of_day; - } - - public function hasEndTimeOfDay() - { - return isset($this->end_time_of_day); - } - - public function clearEndTimeOfDay() - { - unset($this->end_time_of_day); - } - - /** - * The time in UTC that no further transfer operations are scheduled. Combined - * with - * [schedule_end_date][google.storagetransfer.v1.Schedule.schedule_end_date], - * `end_time_of_day` specifies the end date and time for starting new transfer - * operations. This field must be greater than or equal to the timestamp - * corresponding to the combintation of - * [schedule_start_date][google.storagetransfer.v1.Schedule.schedule_start_date] - * and - * [start_time_of_day][google.storagetransfer.v1.Schedule.start_time_of_day], - * and is subject to the following: - * * If `end_time_of_day` is not set and `schedule_end_date` is set, then - * a default value of `23:59:59` is used for `end_time_of_day`. - * * If `end_time_of_day` is set and `schedule_end_date` is not set, then - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] is returned. - * - * Generated from protobuf field .google.type.TimeOfDay end_time_of_day = 4; - * @param \Google\Type\TimeOfDay $var - * @return $this - */ - public function setEndTimeOfDay($var) - { - GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); - $this->end_time_of_day = $var; - - return $this; - } - - /** - * Interval between the start of each scheduled TransferOperation. If - * unspecified, the default value is 24 hours. This value may not be less than - * 1 hour. - * - * Generated from protobuf field .google.protobuf.Duration repeat_interval = 5; - * @return \Google\Protobuf\Duration|null - */ - public function getRepeatInterval() - { - return $this->repeat_interval; - } - - public function hasRepeatInterval() - { - return isset($this->repeat_interval); - } - - public function clearRepeatInterval() - { - unset($this->repeat_interval); - } - - /** - * Interval between the start of each scheduled TransferOperation. If - * unspecified, the default value is 24 hours. This value may not be less than - * 1 hour. - * - * Generated from protobuf field .google.protobuf.Duration repeat_interval = 5; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setRepeatInterval($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->repeat_interval = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferCounters.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferCounters.php deleted file mode 100644 index 53014ea3e1ba..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferCounters.php +++ /dev/null @@ -1,815 +0,0 @@ -google.storagetransfer.v1.TransferCounters - */ -class TransferCounters extends \Google\Protobuf\Internal\Message -{ - /** - * Objects found in the data source that are scheduled to be transferred, - * excluding any that are filtered based on object conditions or skipped due - * to sync. - * - * Generated from protobuf field int64 objects_found_from_source = 1; - */ - protected $objects_found_from_source = 0; - /** - * Bytes found in the data source that are scheduled to be transferred, - * excluding any that are filtered based on object conditions or skipped due - * to sync. - * - * Generated from protobuf field int64 bytes_found_from_source = 2; - */ - protected $bytes_found_from_source = 0; - /** - * Objects found only in the data sink that are scheduled to be deleted. - * - * Generated from protobuf field int64 objects_found_only_from_sink = 3; - */ - protected $objects_found_only_from_sink = 0; - /** - * Bytes found only in the data sink that are scheduled to be deleted. - * - * Generated from protobuf field int64 bytes_found_only_from_sink = 4; - */ - protected $bytes_found_only_from_sink = 0; - /** - * Objects in the data source that are not transferred because they already - * exist in the data sink. - * - * Generated from protobuf field int64 objects_from_source_skipped_by_sync = 5; - */ - protected $objects_from_source_skipped_by_sync = 0; - /** - * Bytes in the data source that are not transferred because they already - * exist in the data sink. - * - * Generated from protobuf field int64 bytes_from_source_skipped_by_sync = 6; - */ - protected $bytes_from_source_skipped_by_sync = 0; - /** - * Objects that are copied to the data sink. - * - * Generated from protobuf field int64 objects_copied_to_sink = 7; - */ - protected $objects_copied_to_sink = 0; - /** - * Bytes that are copied to the data sink. - * - * Generated from protobuf field int64 bytes_copied_to_sink = 8; - */ - protected $bytes_copied_to_sink = 0; - /** - * Objects that are deleted from the data source. - * - * Generated from protobuf field int64 objects_deleted_from_source = 9; - */ - protected $objects_deleted_from_source = 0; - /** - * Bytes that are deleted from the data source. - * - * Generated from protobuf field int64 bytes_deleted_from_source = 10; - */ - protected $bytes_deleted_from_source = 0; - /** - * Objects that are deleted from the data sink. - * - * Generated from protobuf field int64 objects_deleted_from_sink = 11; - */ - protected $objects_deleted_from_sink = 0; - /** - * Bytes that are deleted from the data sink. - * - * Generated from protobuf field int64 bytes_deleted_from_sink = 12; - */ - protected $bytes_deleted_from_sink = 0; - /** - * Objects in the data source that failed to be transferred or that failed - * to be deleted after being transferred. - * - * Generated from protobuf field int64 objects_from_source_failed = 13; - */ - protected $objects_from_source_failed = 0; - /** - * Bytes in the data source that failed to be transferred or that failed to - * be deleted after being transferred. - * - * Generated from protobuf field int64 bytes_from_source_failed = 14; - */ - protected $bytes_from_source_failed = 0; - /** - * Objects that failed to be deleted from the data sink. - * - * Generated from protobuf field int64 objects_failed_to_delete_from_sink = 15; - */ - protected $objects_failed_to_delete_from_sink = 0; - /** - * Bytes that failed to be deleted from the data sink. - * - * Generated from protobuf field int64 bytes_failed_to_delete_from_sink = 16; - */ - protected $bytes_failed_to_delete_from_sink = 0; - /** - * For transfers involving PosixFilesystem only. - * Number of directories found while listing. For example, if the root - * directory of the transfer is `base/` and there are two other directories, - * `a/` and `b/` under this directory, the count after listing `base/`, - * `base/a/` and `base/b/` is 3. - * - * Generated from protobuf field int64 directories_found_from_source = 17; - */ - protected $directories_found_from_source = 0; - /** - * For transfers involving PosixFilesystem only. - * Number of listing failures for each directory found at the source. - * Potential failures when listing a directory include permission failure or - * block failure. If listing a directory fails, no files in the directory are - * transferred. - * - * Generated from protobuf field int64 directories_failed_to_list_from_source = 18; - */ - protected $directories_failed_to_list_from_source = 0; - /** - * For transfers involving PosixFilesystem only. - * Number of successful listings for each directory found at the source. - * - * Generated from protobuf field int64 directories_successfully_listed_from_source = 19; - */ - protected $directories_successfully_listed_from_source = 0; - /** - * Number of successfully cleaned up intermediate objects. - * - * Generated from protobuf field int64 intermediate_objects_cleaned_up = 22; - */ - protected $intermediate_objects_cleaned_up = 0; - /** - * Number of intermediate objects failed cleaned up. - * - * Generated from protobuf field int64 intermediate_objects_failed_cleaned_up = 23; - */ - protected $intermediate_objects_failed_cleaned_up = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $objects_found_from_source - * Objects found in the data source that are scheduled to be transferred, - * excluding any that are filtered based on object conditions or skipped due - * to sync. - * @type int|string $bytes_found_from_source - * Bytes found in the data source that are scheduled to be transferred, - * excluding any that are filtered based on object conditions or skipped due - * to sync. - * @type int|string $objects_found_only_from_sink - * Objects found only in the data sink that are scheduled to be deleted. - * @type int|string $bytes_found_only_from_sink - * Bytes found only in the data sink that are scheduled to be deleted. - * @type int|string $objects_from_source_skipped_by_sync - * Objects in the data source that are not transferred because they already - * exist in the data sink. - * @type int|string $bytes_from_source_skipped_by_sync - * Bytes in the data source that are not transferred because they already - * exist in the data sink. - * @type int|string $objects_copied_to_sink - * Objects that are copied to the data sink. - * @type int|string $bytes_copied_to_sink - * Bytes that are copied to the data sink. - * @type int|string $objects_deleted_from_source - * Objects that are deleted from the data source. - * @type int|string $bytes_deleted_from_source - * Bytes that are deleted from the data source. - * @type int|string $objects_deleted_from_sink - * Objects that are deleted from the data sink. - * @type int|string $bytes_deleted_from_sink - * Bytes that are deleted from the data sink. - * @type int|string $objects_from_source_failed - * Objects in the data source that failed to be transferred or that failed - * to be deleted after being transferred. - * @type int|string $bytes_from_source_failed - * Bytes in the data source that failed to be transferred or that failed to - * be deleted after being transferred. - * @type int|string $objects_failed_to_delete_from_sink - * Objects that failed to be deleted from the data sink. - * @type int|string $bytes_failed_to_delete_from_sink - * Bytes that failed to be deleted from the data sink. - * @type int|string $directories_found_from_source - * For transfers involving PosixFilesystem only. - * Number of directories found while listing. For example, if the root - * directory of the transfer is `base/` and there are two other directories, - * `a/` and `b/` under this directory, the count after listing `base/`, - * `base/a/` and `base/b/` is 3. - * @type int|string $directories_failed_to_list_from_source - * For transfers involving PosixFilesystem only. - * Number of listing failures for each directory found at the source. - * Potential failures when listing a directory include permission failure or - * block failure. If listing a directory fails, no files in the directory are - * transferred. - * @type int|string $directories_successfully_listed_from_source - * For transfers involving PosixFilesystem only. - * Number of successful listings for each directory found at the source. - * @type int|string $intermediate_objects_cleaned_up - * Number of successfully cleaned up intermediate objects. - * @type int|string $intermediate_objects_failed_cleaned_up - * Number of intermediate objects failed cleaned up. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Objects found in the data source that are scheduled to be transferred, - * excluding any that are filtered based on object conditions or skipped due - * to sync. - * - * Generated from protobuf field int64 objects_found_from_source = 1; - * @return int|string - */ - public function getObjectsFoundFromSource() - { - return $this->objects_found_from_source; - } - - /** - * Objects found in the data source that are scheduled to be transferred, - * excluding any that are filtered based on object conditions or skipped due - * to sync. - * - * Generated from protobuf field int64 objects_found_from_source = 1; - * @param int|string $var - * @return $this - */ - public function setObjectsFoundFromSource($var) - { - GPBUtil::checkInt64($var); - $this->objects_found_from_source = $var; - - return $this; - } - - /** - * Bytes found in the data source that are scheduled to be transferred, - * excluding any that are filtered based on object conditions or skipped due - * to sync. - * - * Generated from protobuf field int64 bytes_found_from_source = 2; - * @return int|string - */ - public function getBytesFoundFromSource() - { - return $this->bytes_found_from_source; - } - - /** - * Bytes found in the data source that are scheduled to be transferred, - * excluding any that are filtered based on object conditions or skipped due - * to sync. - * - * Generated from protobuf field int64 bytes_found_from_source = 2; - * @param int|string $var - * @return $this - */ - public function setBytesFoundFromSource($var) - { - GPBUtil::checkInt64($var); - $this->bytes_found_from_source = $var; - - return $this; - } - - /** - * Objects found only in the data sink that are scheduled to be deleted. - * - * Generated from protobuf field int64 objects_found_only_from_sink = 3; - * @return int|string - */ - public function getObjectsFoundOnlyFromSink() - { - return $this->objects_found_only_from_sink; - } - - /** - * Objects found only in the data sink that are scheduled to be deleted. - * - * Generated from protobuf field int64 objects_found_only_from_sink = 3; - * @param int|string $var - * @return $this - */ - public function setObjectsFoundOnlyFromSink($var) - { - GPBUtil::checkInt64($var); - $this->objects_found_only_from_sink = $var; - - return $this; - } - - /** - * Bytes found only in the data sink that are scheduled to be deleted. - * - * Generated from protobuf field int64 bytes_found_only_from_sink = 4; - * @return int|string - */ - public function getBytesFoundOnlyFromSink() - { - return $this->bytes_found_only_from_sink; - } - - /** - * Bytes found only in the data sink that are scheduled to be deleted. - * - * Generated from protobuf field int64 bytes_found_only_from_sink = 4; - * @param int|string $var - * @return $this - */ - public function setBytesFoundOnlyFromSink($var) - { - GPBUtil::checkInt64($var); - $this->bytes_found_only_from_sink = $var; - - return $this; - } - - /** - * Objects in the data source that are not transferred because they already - * exist in the data sink. - * - * Generated from protobuf field int64 objects_from_source_skipped_by_sync = 5; - * @return int|string - */ - public function getObjectsFromSourceSkippedBySync() - { - return $this->objects_from_source_skipped_by_sync; - } - - /** - * Objects in the data source that are not transferred because they already - * exist in the data sink. - * - * Generated from protobuf field int64 objects_from_source_skipped_by_sync = 5; - * @param int|string $var - * @return $this - */ - public function setObjectsFromSourceSkippedBySync($var) - { - GPBUtil::checkInt64($var); - $this->objects_from_source_skipped_by_sync = $var; - - return $this; - } - - /** - * Bytes in the data source that are not transferred because they already - * exist in the data sink. - * - * Generated from protobuf field int64 bytes_from_source_skipped_by_sync = 6; - * @return int|string - */ - public function getBytesFromSourceSkippedBySync() - { - return $this->bytes_from_source_skipped_by_sync; - } - - /** - * Bytes in the data source that are not transferred because they already - * exist in the data sink. - * - * Generated from protobuf field int64 bytes_from_source_skipped_by_sync = 6; - * @param int|string $var - * @return $this - */ - public function setBytesFromSourceSkippedBySync($var) - { - GPBUtil::checkInt64($var); - $this->bytes_from_source_skipped_by_sync = $var; - - return $this; - } - - /** - * Objects that are copied to the data sink. - * - * Generated from protobuf field int64 objects_copied_to_sink = 7; - * @return int|string - */ - public function getObjectsCopiedToSink() - { - return $this->objects_copied_to_sink; - } - - /** - * Objects that are copied to the data sink. - * - * Generated from protobuf field int64 objects_copied_to_sink = 7; - * @param int|string $var - * @return $this - */ - public function setObjectsCopiedToSink($var) - { - GPBUtil::checkInt64($var); - $this->objects_copied_to_sink = $var; - - return $this; - } - - /** - * Bytes that are copied to the data sink. - * - * Generated from protobuf field int64 bytes_copied_to_sink = 8; - * @return int|string - */ - public function getBytesCopiedToSink() - { - return $this->bytes_copied_to_sink; - } - - /** - * Bytes that are copied to the data sink. - * - * Generated from protobuf field int64 bytes_copied_to_sink = 8; - * @param int|string $var - * @return $this - */ - public function setBytesCopiedToSink($var) - { - GPBUtil::checkInt64($var); - $this->bytes_copied_to_sink = $var; - - return $this; - } - - /** - * Objects that are deleted from the data source. - * - * Generated from protobuf field int64 objects_deleted_from_source = 9; - * @return int|string - */ - public function getObjectsDeletedFromSource() - { - return $this->objects_deleted_from_source; - } - - /** - * Objects that are deleted from the data source. - * - * Generated from protobuf field int64 objects_deleted_from_source = 9; - * @param int|string $var - * @return $this - */ - public function setObjectsDeletedFromSource($var) - { - GPBUtil::checkInt64($var); - $this->objects_deleted_from_source = $var; - - return $this; - } - - /** - * Bytes that are deleted from the data source. - * - * Generated from protobuf field int64 bytes_deleted_from_source = 10; - * @return int|string - */ - public function getBytesDeletedFromSource() - { - return $this->bytes_deleted_from_source; - } - - /** - * Bytes that are deleted from the data source. - * - * Generated from protobuf field int64 bytes_deleted_from_source = 10; - * @param int|string $var - * @return $this - */ - public function setBytesDeletedFromSource($var) - { - GPBUtil::checkInt64($var); - $this->bytes_deleted_from_source = $var; - - return $this; - } - - /** - * Objects that are deleted from the data sink. - * - * Generated from protobuf field int64 objects_deleted_from_sink = 11; - * @return int|string - */ - public function getObjectsDeletedFromSink() - { - return $this->objects_deleted_from_sink; - } - - /** - * Objects that are deleted from the data sink. - * - * Generated from protobuf field int64 objects_deleted_from_sink = 11; - * @param int|string $var - * @return $this - */ - public function setObjectsDeletedFromSink($var) - { - GPBUtil::checkInt64($var); - $this->objects_deleted_from_sink = $var; - - return $this; - } - - /** - * Bytes that are deleted from the data sink. - * - * Generated from protobuf field int64 bytes_deleted_from_sink = 12; - * @return int|string - */ - public function getBytesDeletedFromSink() - { - return $this->bytes_deleted_from_sink; - } - - /** - * Bytes that are deleted from the data sink. - * - * Generated from protobuf field int64 bytes_deleted_from_sink = 12; - * @param int|string $var - * @return $this - */ - public function setBytesDeletedFromSink($var) - { - GPBUtil::checkInt64($var); - $this->bytes_deleted_from_sink = $var; - - return $this; - } - - /** - * Objects in the data source that failed to be transferred or that failed - * to be deleted after being transferred. - * - * Generated from protobuf field int64 objects_from_source_failed = 13; - * @return int|string - */ - public function getObjectsFromSourceFailed() - { - return $this->objects_from_source_failed; - } - - /** - * Objects in the data source that failed to be transferred or that failed - * to be deleted after being transferred. - * - * Generated from protobuf field int64 objects_from_source_failed = 13; - * @param int|string $var - * @return $this - */ - public function setObjectsFromSourceFailed($var) - { - GPBUtil::checkInt64($var); - $this->objects_from_source_failed = $var; - - return $this; - } - - /** - * Bytes in the data source that failed to be transferred or that failed to - * be deleted after being transferred. - * - * Generated from protobuf field int64 bytes_from_source_failed = 14; - * @return int|string - */ - public function getBytesFromSourceFailed() - { - return $this->bytes_from_source_failed; - } - - /** - * Bytes in the data source that failed to be transferred or that failed to - * be deleted after being transferred. - * - * Generated from protobuf field int64 bytes_from_source_failed = 14; - * @param int|string $var - * @return $this - */ - public function setBytesFromSourceFailed($var) - { - GPBUtil::checkInt64($var); - $this->bytes_from_source_failed = $var; - - return $this; - } - - /** - * Objects that failed to be deleted from the data sink. - * - * Generated from protobuf field int64 objects_failed_to_delete_from_sink = 15; - * @return int|string - */ - public function getObjectsFailedToDeleteFromSink() - { - return $this->objects_failed_to_delete_from_sink; - } - - /** - * Objects that failed to be deleted from the data sink. - * - * Generated from protobuf field int64 objects_failed_to_delete_from_sink = 15; - * @param int|string $var - * @return $this - */ - public function setObjectsFailedToDeleteFromSink($var) - { - GPBUtil::checkInt64($var); - $this->objects_failed_to_delete_from_sink = $var; - - return $this; - } - - /** - * Bytes that failed to be deleted from the data sink. - * - * Generated from protobuf field int64 bytes_failed_to_delete_from_sink = 16; - * @return int|string - */ - public function getBytesFailedToDeleteFromSink() - { - return $this->bytes_failed_to_delete_from_sink; - } - - /** - * Bytes that failed to be deleted from the data sink. - * - * Generated from protobuf field int64 bytes_failed_to_delete_from_sink = 16; - * @param int|string $var - * @return $this - */ - public function setBytesFailedToDeleteFromSink($var) - { - GPBUtil::checkInt64($var); - $this->bytes_failed_to_delete_from_sink = $var; - - return $this; - } - - /** - * For transfers involving PosixFilesystem only. - * Number of directories found while listing. For example, if the root - * directory of the transfer is `base/` and there are two other directories, - * `a/` and `b/` under this directory, the count after listing `base/`, - * `base/a/` and `base/b/` is 3. - * - * Generated from protobuf field int64 directories_found_from_source = 17; - * @return int|string - */ - public function getDirectoriesFoundFromSource() - { - return $this->directories_found_from_source; - } - - /** - * For transfers involving PosixFilesystem only. - * Number of directories found while listing. For example, if the root - * directory of the transfer is `base/` and there are two other directories, - * `a/` and `b/` under this directory, the count after listing `base/`, - * `base/a/` and `base/b/` is 3. - * - * Generated from protobuf field int64 directories_found_from_source = 17; - * @param int|string $var - * @return $this - */ - public function setDirectoriesFoundFromSource($var) - { - GPBUtil::checkInt64($var); - $this->directories_found_from_source = $var; - - return $this; - } - - /** - * For transfers involving PosixFilesystem only. - * Number of listing failures for each directory found at the source. - * Potential failures when listing a directory include permission failure or - * block failure. If listing a directory fails, no files in the directory are - * transferred. - * - * Generated from protobuf field int64 directories_failed_to_list_from_source = 18; - * @return int|string - */ - public function getDirectoriesFailedToListFromSource() - { - return $this->directories_failed_to_list_from_source; - } - - /** - * For transfers involving PosixFilesystem only. - * Number of listing failures for each directory found at the source. - * Potential failures when listing a directory include permission failure or - * block failure. If listing a directory fails, no files in the directory are - * transferred. - * - * Generated from protobuf field int64 directories_failed_to_list_from_source = 18; - * @param int|string $var - * @return $this - */ - public function setDirectoriesFailedToListFromSource($var) - { - GPBUtil::checkInt64($var); - $this->directories_failed_to_list_from_source = $var; - - return $this; - } - - /** - * For transfers involving PosixFilesystem only. - * Number of successful listings for each directory found at the source. - * - * Generated from protobuf field int64 directories_successfully_listed_from_source = 19; - * @return int|string - */ - public function getDirectoriesSuccessfullyListedFromSource() - { - return $this->directories_successfully_listed_from_source; - } - - /** - * For transfers involving PosixFilesystem only. - * Number of successful listings for each directory found at the source. - * - * Generated from protobuf field int64 directories_successfully_listed_from_source = 19; - * @param int|string $var - * @return $this - */ - public function setDirectoriesSuccessfullyListedFromSource($var) - { - GPBUtil::checkInt64($var); - $this->directories_successfully_listed_from_source = $var; - - return $this; - } - - /** - * Number of successfully cleaned up intermediate objects. - * - * Generated from protobuf field int64 intermediate_objects_cleaned_up = 22; - * @return int|string - */ - public function getIntermediateObjectsCleanedUp() - { - return $this->intermediate_objects_cleaned_up; - } - - /** - * Number of successfully cleaned up intermediate objects. - * - * Generated from protobuf field int64 intermediate_objects_cleaned_up = 22; - * @param int|string $var - * @return $this - */ - public function setIntermediateObjectsCleanedUp($var) - { - GPBUtil::checkInt64($var); - $this->intermediate_objects_cleaned_up = $var; - - return $this; - } - - /** - * Number of intermediate objects failed cleaned up. - * - * Generated from protobuf field int64 intermediate_objects_failed_cleaned_up = 23; - * @return int|string - */ - public function getIntermediateObjectsFailedCleanedUp() - { - return $this->intermediate_objects_failed_cleaned_up; - } - - /** - * Number of intermediate objects failed cleaned up. - * - * Generated from protobuf field int64 intermediate_objects_failed_cleaned_up = 23; - * @param int|string $var - * @return $this - */ - public function setIntermediateObjectsFailedCleanedUp($var) - { - GPBUtil::checkInt64($var); - $this->intermediate_objects_failed_cleaned_up = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferJob.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferJob.php deleted file mode 100644 index b2bbc2e9c523..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferJob.php +++ /dev/null @@ -1,724 +0,0 @@ -google.storagetransfer.v1.TransferJob - */ -class TransferJob extends \Google\Protobuf\Internal\Message -{ - /** - * A unique name (within the transfer project) assigned when the job is - * created. If this field is empty in a CreateTransferJobRequest, Storage - * Transfer Service assigns a unique name. Otherwise, the specified name - * is used as the unique name for this job. - * If the specified name is in use by a job, the creation request fails with - * an [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error. - * This name must start with `"transferJobs/"` prefix and end with a letter or - * a number, and should be no more than 128 characters. For transfers - * involving PosixFilesystem, this name must start with `transferJobs/OPI` - * specifically. For all other transfer types, this name must not start with - * `transferJobs/OPI`. - * Non-PosixFilesystem example: - * `"transferJobs/^(?!OPI)[A-Za-z0-9-._~]*[A-Za-z0-9]$"` - * PosixFilesystem example: - * `"transferJobs/OPI^[A-Za-z0-9-._~]*[A-Za-z0-9]$"` - * Applications must not rely on the enforcement of naming requirements - * involving OPI. - * Invalid job names fail with an - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * A description provided by the user for the job. Its max length is 1024 - * bytes when Unicode-encoded. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * The ID of the Google Cloud project that owns the job. - * - * Generated from protobuf field string project_id = 3; - */ - protected $project_id = ''; - /** - * Transfer specification. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferSpec transfer_spec = 4; - */ - protected $transfer_spec = null; - /** - * Replication specification. - * - * Generated from protobuf field .google.storagetransfer.v1.ReplicationSpec replication_spec = 17; - */ - protected $replication_spec = null; - /** - * Notification configuration. - * - * Generated from protobuf field .google.storagetransfer.v1.NotificationConfig notification_config = 11; - */ - protected $notification_config = null; - /** - * Logging configuration. - * - * Generated from protobuf field .google.storagetransfer.v1.LoggingConfig logging_config = 14; - */ - protected $logging_config = null; - /** - * Specifies schedule for the transfer job. - * This is an optional field. When the field is not set, the job never - * executes a transfer, unless you invoke RunTransferJob or update the job to - * have a non-empty schedule. - * - * Generated from protobuf field .google.storagetransfer.v1.Schedule schedule = 5; - */ - protected $schedule = null; - /** - * Specifies the event stream for the transfer job for event-driven transfers. - * When EventStream is specified, the Schedule fields are ignored. - * - * Generated from protobuf field .google.storagetransfer.v1.EventStream event_stream = 15; - */ - protected $event_stream = null; - /** - * Status of the job. This value MUST be specified for - * `CreateTransferJobRequests`. - * **Note:** The effect of the new job status takes place during a subsequent - * job run. For example, if you change the job status from - * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED] to - * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], and an - * operation spawned by the transfer is running, the status change would not - * affect the current operation. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferJob.Status status = 6; - */ - protected $status = 0; - /** - * Output only. The time that the transfer job was created. - * - * Generated from protobuf field .google.protobuf.Timestamp creation_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $creation_time = null; - /** - * Output only. The time that the transfer job was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp last_modification_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_modification_time = null; - /** - * Output only. The time that the transfer job was deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp deletion_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deletion_time = null; - /** - * The name of the most recently started TransferOperation of this JobConfig. - * Present if a TransferOperation has been created for this JobConfig. - * - * Generated from protobuf field string latest_operation_name = 12; - */ - protected $latest_operation_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * A unique name (within the transfer project) assigned when the job is - * created. If this field is empty in a CreateTransferJobRequest, Storage - * Transfer Service assigns a unique name. Otherwise, the specified name - * is used as the unique name for this job. - * If the specified name is in use by a job, the creation request fails with - * an [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error. - * This name must start with `"transferJobs/"` prefix and end with a letter or - * a number, and should be no more than 128 characters. For transfers - * involving PosixFilesystem, this name must start with `transferJobs/OPI` - * specifically. For all other transfer types, this name must not start with - * `transferJobs/OPI`. - * Non-PosixFilesystem example: - * `"transferJobs/^(?!OPI)[A-Za-z0-9-._~]*[A-Za-z0-9]$"` - * PosixFilesystem example: - * `"transferJobs/OPI^[A-Za-z0-9-._~]*[A-Za-z0-9]$"` - * Applications must not rely on the enforcement of naming requirements - * involving OPI. - * Invalid job names fail with an - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error. - * @type string $description - * A description provided by the user for the job. Its max length is 1024 - * bytes when Unicode-encoded. - * @type string $project_id - * The ID of the Google Cloud project that owns the job. - * @type \Google\Cloud\StorageTransfer\V1\TransferSpec $transfer_spec - * Transfer specification. - * @type \Google\Cloud\StorageTransfer\V1\ReplicationSpec $replication_spec - * Replication specification. - * @type \Google\Cloud\StorageTransfer\V1\NotificationConfig $notification_config - * Notification configuration. - * @type \Google\Cloud\StorageTransfer\V1\LoggingConfig $logging_config - * Logging configuration. - * @type \Google\Cloud\StorageTransfer\V1\Schedule $schedule - * Specifies schedule for the transfer job. - * This is an optional field. When the field is not set, the job never - * executes a transfer, unless you invoke RunTransferJob or update the job to - * have a non-empty schedule. - * @type \Google\Cloud\StorageTransfer\V1\EventStream $event_stream - * Specifies the event stream for the transfer job for event-driven transfers. - * When EventStream is specified, the Schedule fields are ignored. - * @type int $status - * Status of the job. This value MUST be specified for - * `CreateTransferJobRequests`. - * **Note:** The effect of the new job status takes place during a subsequent - * job run. For example, if you change the job status from - * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED] to - * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], and an - * operation spawned by the transfer is running, the status change would not - * affect the current operation. - * @type \Google\Protobuf\Timestamp $creation_time - * Output only. The time that the transfer job was created. - * @type \Google\Protobuf\Timestamp $last_modification_time - * Output only. The time that the transfer job was last modified. - * @type \Google\Protobuf\Timestamp $deletion_time - * Output only. The time that the transfer job was deleted. - * @type string $latest_operation_name - * The name of the most recently started TransferOperation of this JobConfig. - * Present if a TransferOperation has been created for this JobConfig. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * A unique name (within the transfer project) assigned when the job is - * created. If this field is empty in a CreateTransferJobRequest, Storage - * Transfer Service assigns a unique name. Otherwise, the specified name - * is used as the unique name for this job. - * If the specified name is in use by a job, the creation request fails with - * an [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error. - * This name must start with `"transferJobs/"` prefix and end with a letter or - * a number, and should be no more than 128 characters. For transfers - * involving PosixFilesystem, this name must start with `transferJobs/OPI` - * specifically. For all other transfer types, this name must not start with - * `transferJobs/OPI`. - * Non-PosixFilesystem example: - * `"transferJobs/^(?!OPI)[A-Za-z0-9-._~]*[A-Za-z0-9]$"` - * PosixFilesystem example: - * `"transferJobs/OPI^[A-Za-z0-9-._~]*[A-Za-z0-9]$"` - * Applications must not rely on the enforcement of naming requirements - * involving OPI. - * Invalid job names fail with an - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * A unique name (within the transfer project) assigned when the job is - * created. If this field is empty in a CreateTransferJobRequest, Storage - * Transfer Service assigns a unique name. Otherwise, the specified name - * is used as the unique name for this job. - * If the specified name is in use by a job, the creation request fails with - * an [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error. - * This name must start with `"transferJobs/"` prefix and end with a letter or - * a number, and should be no more than 128 characters. For transfers - * involving PosixFilesystem, this name must start with `transferJobs/OPI` - * specifically. For all other transfer types, this name must not start with - * `transferJobs/OPI`. - * Non-PosixFilesystem example: - * `"transferJobs/^(?!OPI)[A-Za-z0-9-._~]*[A-Za-z0-9]$"` - * PosixFilesystem example: - * `"transferJobs/OPI^[A-Za-z0-9-._~]*[A-Za-z0-9]$"` - * Applications must not rely on the enforcement of naming requirements - * involving OPI. - * Invalid job names fail with an - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * A description provided by the user for the job. Its max length is 1024 - * bytes when Unicode-encoded. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A description provided by the user for the job. Its max length is 1024 - * bytes when Unicode-encoded. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The ID of the Google Cloud project that owns the job. - * - * Generated from protobuf field string project_id = 3; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The ID of the Google Cloud project that owns the job. - * - * Generated from protobuf field string project_id = 3; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Transfer specification. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferSpec transfer_spec = 4; - * @return \Google\Cloud\StorageTransfer\V1\TransferSpec|null - */ - public function getTransferSpec() - { - return $this->transfer_spec; - } - - public function hasTransferSpec() - { - return isset($this->transfer_spec); - } - - public function clearTransferSpec() - { - unset($this->transfer_spec); - } - - /** - * Transfer specification. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferSpec transfer_spec = 4; - * @param \Google\Cloud\StorageTransfer\V1\TransferSpec $var - * @return $this - */ - public function setTransferSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\TransferSpec::class); - $this->transfer_spec = $var; - - return $this; - } - - /** - * Replication specification. - * - * Generated from protobuf field .google.storagetransfer.v1.ReplicationSpec replication_spec = 17; - * @return \Google\Cloud\StorageTransfer\V1\ReplicationSpec|null - */ - public function getReplicationSpec() - { - return $this->replication_spec; - } - - public function hasReplicationSpec() - { - return isset($this->replication_spec); - } - - public function clearReplicationSpec() - { - unset($this->replication_spec); - } - - /** - * Replication specification. - * - * Generated from protobuf field .google.storagetransfer.v1.ReplicationSpec replication_spec = 17; - * @param \Google\Cloud\StorageTransfer\V1\ReplicationSpec $var - * @return $this - */ - public function setReplicationSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\ReplicationSpec::class); - $this->replication_spec = $var; - - return $this; - } - - /** - * Notification configuration. - * - * Generated from protobuf field .google.storagetransfer.v1.NotificationConfig notification_config = 11; - * @return \Google\Cloud\StorageTransfer\V1\NotificationConfig|null - */ - public function getNotificationConfig() - { - return $this->notification_config; - } - - public function hasNotificationConfig() - { - return isset($this->notification_config); - } - - public function clearNotificationConfig() - { - unset($this->notification_config); - } - - /** - * Notification configuration. - * - * Generated from protobuf field .google.storagetransfer.v1.NotificationConfig notification_config = 11; - * @param \Google\Cloud\StorageTransfer\V1\NotificationConfig $var - * @return $this - */ - public function setNotificationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\NotificationConfig::class); - $this->notification_config = $var; - - return $this; - } - - /** - * Logging configuration. - * - * Generated from protobuf field .google.storagetransfer.v1.LoggingConfig logging_config = 14; - * @return \Google\Cloud\StorageTransfer\V1\LoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Logging configuration. - * - * Generated from protobuf field .google.storagetransfer.v1.LoggingConfig logging_config = 14; - * @param \Google\Cloud\StorageTransfer\V1\LoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\LoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - - /** - * Specifies schedule for the transfer job. - * This is an optional field. When the field is not set, the job never - * executes a transfer, unless you invoke RunTransferJob or update the job to - * have a non-empty schedule. - * - * Generated from protobuf field .google.storagetransfer.v1.Schedule schedule = 5; - * @return \Google\Cloud\StorageTransfer\V1\Schedule|null - */ - public function getSchedule() - { - return $this->schedule; - } - - public function hasSchedule() - { - return isset($this->schedule); - } - - public function clearSchedule() - { - unset($this->schedule); - } - - /** - * Specifies schedule for the transfer job. - * This is an optional field. When the field is not set, the job never - * executes a transfer, unless you invoke RunTransferJob or update the job to - * have a non-empty schedule. - * - * Generated from protobuf field .google.storagetransfer.v1.Schedule schedule = 5; - * @param \Google\Cloud\StorageTransfer\V1\Schedule $var - * @return $this - */ - public function setSchedule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\Schedule::class); - $this->schedule = $var; - - return $this; - } - - /** - * Specifies the event stream for the transfer job for event-driven transfers. - * When EventStream is specified, the Schedule fields are ignored. - * - * Generated from protobuf field .google.storagetransfer.v1.EventStream event_stream = 15; - * @return \Google\Cloud\StorageTransfer\V1\EventStream|null - */ - public function getEventStream() - { - return $this->event_stream; - } - - public function hasEventStream() - { - return isset($this->event_stream); - } - - public function clearEventStream() - { - unset($this->event_stream); - } - - /** - * Specifies the event stream for the transfer job for event-driven transfers. - * When EventStream is specified, the Schedule fields are ignored. - * - * Generated from protobuf field .google.storagetransfer.v1.EventStream event_stream = 15; - * @param \Google\Cloud\StorageTransfer\V1\EventStream $var - * @return $this - */ - public function setEventStream($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\EventStream::class); - $this->event_stream = $var; - - return $this; - } - - /** - * Status of the job. This value MUST be specified for - * `CreateTransferJobRequests`. - * **Note:** The effect of the new job status takes place during a subsequent - * job run. For example, if you change the job status from - * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED] to - * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], and an - * operation spawned by the transfer is running, the status change would not - * affect the current operation. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferJob.Status status = 6; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Status of the job. This value MUST be specified for - * `CreateTransferJobRequests`. - * **Note:** The effect of the new job status takes place during a subsequent - * job run. For example, if you change the job status from - * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED] to - * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], and an - * operation spawned by the transfer is running, the status change would not - * affect the current operation. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferJob.Status status = 6; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\StorageTransfer\V1\TransferJob\Status::class); - $this->status = $var; - - return $this; - } - - /** - * Output only. The time that the transfer job was created. - * - * Generated from protobuf field .google.protobuf.Timestamp creation_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreationTime() - { - return $this->creation_time; - } - - public function hasCreationTime() - { - return isset($this->creation_time); - } - - public function clearCreationTime() - { - unset($this->creation_time); - } - - /** - * Output only. The time that the transfer job was created. - * - * Generated from protobuf field .google.protobuf.Timestamp creation_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->creation_time = $var; - - return $this; - } - - /** - * Output only. The time that the transfer job was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp last_modification_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastModificationTime() - { - return $this->last_modification_time; - } - - public function hasLastModificationTime() - { - return isset($this->last_modification_time); - } - - public function clearLastModificationTime() - { - unset($this->last_modification_time); - } - - /** - * Output only. The time that the transfer job was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp last_modification_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastModificationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_modification_time = $var; - - return $this; - } - - /** - * Output only. The time that the transfer job was deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp deletion_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeletionTime() - { - return $this->deletion_time; - } - - public function hasDeletionTime() - { - return isset($this->deletion_time); - } - - public function clearDeletionTime() - { - unset($this->deletion_time); - } - - /** - * Output only. The time that the transfer job was deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp deletion_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeletionTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->deletion_time = $var; - - return $this; - } - - /** - * The name of the most recently started TransferOperation of this JobConfig. - * Present if a TransferOperation has been created for this JobConfig. - * - * Generated from protobuf field string latest_operation_name = 12; - * @return string - */ - public function getLatestOperationName() - { - return $this->latest_operation_name; - } - - /** - * The name of the most recently started TransferOperation of this JobConfig. - * Present if a TransferOperation has been created for this JobConfig. - * - * Generated from protobuf field string latest_operation_name = 12; - * @param string $var - * @return $this - */ - public function setLatestOperationName($var) - { - GPBUtil::checkString($var, True); - $this->latest_operation_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferJob/Status.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferJob/Status.php deleted file mode 100644 index f54ca4bfc2ce..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferJob/Status.php +++ /dev/null @@ -1,74 +0,0 @@ -google.storagetransfer.v1.TransferJob.Status - */ -class Status -{ - /** - * Zero is an illegal value. - * - * Generated from protobuf enum STATUS_UNSPECIFIED = 0; - */ - const STATUS_UNSPECIFIED = 0; - /** - * New transfers are performed based on the schedule. - * - * Generated from protobuf enum ENABLED = 1; - */ - const ENABLED = 1; - /** - * New transfers are not scheduled. - * - * Generated from protobuf enum DISABLED = 2; - */ - const DISABLED = 2; - /** - * This is a soft delete state. After a transfer job is set to this - * state, the job and all the transfer executions are subject to - * garbage collection. Transfer jobs become eligible for garbage collection - * 30 days after their status is set to `DELETED`. - * - * Generated from protobuf enum DELETED = 3; - */ - const DELETED = 3; - - private static $valueToName = [ - self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', - self::ENABLED => 'ENABLED', - self::DISABLED => 'DISABLED', - self::DELETED => 'DELETED', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Status::class, \Google\Cloud\StorageTransfer\V1\TransferJob_Status::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferManifest.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferManifest.php deleted file mode 100644 index 6927b1763dac..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferManifest.php +++ /dev/null @@ -1,79 +0,0 @@ -google.storagetransfer.v1.TransferManifest - */ -class TransferManifest extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies the path to the manifest in Cloud Storage. The Google-managed - * service account for the transfer must have `storage.objects.get` - * permission for this object. An example path is - * `gs://bucket_name/path/manifest.csv`. - * - * Generated from protobuf field string location = 1; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $location - * Specifies the path to the manifest in Cloud Storage. The Google-managed - * service account for the transfer must have `storage.objects.get` - * permission for this object. An example path is - * `gs://bucket_name/path/manifest.csv`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * Specifies the path to the manifest in Cloud Storage. The Google-managed - * service account for the transfer must have `storage.objects.get` - * permission for this object. An example path is - * `gs://bucket_name/path/manifest.csv`. - * - * Generated from protobuf field string location = 1; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Specifies the path to the manifest in Cloud Storage. The Google-managed - * service account for the transfer must have `storage.objects.get` - * permission for this object. An example path is - * `gs://bucket_name/path/manifest.csv`. - * - * Generated from protobuf field string location = 1; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferOperation.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferOperation.php deleted file mode 100644 index e846c718a831..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferOperation.php +++ /dev/null @@ -1,467 +0,0 @@ -google.storagetransfer.v1.TransferOperation - */ -class TransferOperation extends \Google\Protobuf\Internal\Message -{ - /** - * A globally unique ID assigned by the system. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The ID of the Google Cloud project that owns the operation. - * - * Generated from protobuf field string project_id = 2; - */ - protected $project_id = ''; - /** - * Transfer specification. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferSpec transfer_spec = 3; - */ - protected $transfer_spec = null; - /** - * Notification configuration. - * - * Generated from protobuf field .google.storagetransfer.v1.NotificationConfig notification_config = 10; - */ - protected $notification_config = null; - /** - * Cloud Logging configuration. - * - * Generated from protobuf field .google.storagetransfer.v1.LoggingConfig logging_config = 12; - */ - protected $logging_config = null; - /** - * Start time of this transfer execution. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4; - */ - protected $start_time = null; - /** - * End time of this transfer execution. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5; - */ - protected $end_time = null; - /** - * Status of the transfer operation. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferOperation.Status status = 6; - */ - protected $status = 0; - /** - * Information about the progress of the transfer operation. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferCounters counters = 7; - */ - protected $counters = null; - /** - * Summarizes errors encountered with sample error log entries. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.ErrorSummary error_breakdowns = 8; - */ - private $error_breakdowns; - /** - * The name of the transfer job that triggers this transfer operation. - * - * Generated from protobuf field string transfer_job_name = 9; - */ - protected $transfer_job_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * A globally unique ID assigned by the system. - * @type string $project_id - * The ID of the Google Cloud project that owns the operation. - * @type \Google\Cloud\StorageTransfer\V1\TransferSpec $transfer_spec - * Transfer specification. - * @type \Google\Cloud\StorageTransfer\V1\NotificationConfig $notification_config - * Notification configuration. - * @type \Google\Cloud\StorageTransfer\V1\LoggingConfig $logging_config - * Cloud Logging configuration. - * @type \Google\Protobuf\Timestamp $start_time - * Start time of this transfer execution. - * @type \Google\Protobuf\Timestamp $end_time - * End time of this transfer execution. - * @type int $status - * Status of the transfer operation. - * @type \Google\Cloud\StorageTransfer\V1\TransferCounters $counters - * Information about the progress of the transfer operation. - * @type array<\Google\Cloud\StorageTransfer\V1\ErrorSummary>|\Google\Protobuf\Internal\RepeatedField $error_breakdowns - * Summarizes errors encountered with sample error log entries. - * @type string $transfer_job_name - * The name of the transfer job that triggers this transfer operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * A globally unique ID assigned by the system. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * A globally unique ID assigned by the system. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The ID of the Google Cloud project that owns the operation. - * - * Generated from protobuf field string project_id = 2; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The ID of the Google Cloud project that owns the operation. - * - * Generated from protobuf field string project_id = 2; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Transfer specification. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferSpec transfer_spec = 3; - * @return \Google\Cloud\StorageTransfer\V1\TransferSpec|null - */ - public function getTransferSpec() - { - return $this->transfer_spec; - } - - public function hasTransferSpec() - { - return isset($this->transfer_spec); - } - - public function clearTransferSpec() - { - unset($this->transfer_spec); - } - - /** - * Transfer specification. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferSpec transfer_spec = 3; - * @param \Google\Cloud\StorageTransfer\V1\TransferSpec $var - * @return $this - */ - public function setTransferSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\TransferSpec::class); - $this->transfer_spec = $var; - - return $this; - } - - /** - * Notification configuration. - * - * Generated from protobuf field .google.storagetransfer.v1.NotificationConfig notification_config = 10; - * @return \Google\Cloud\StorageTransfer\V1\NotificationConfig|null - */ - public function getNotificationConfig() - { - return $this->notification_config; - } - - public function hasNotificationConfig() - { - return isset($this->notification_config); - } - - public function clearNotificationConfig() - { - unset($this->notification_config); - } - - /** - * Notification configuration. - * - * Generated from protobuf field .google.storagetransfer.v1.NotificationConfig notification_config = 10; - * @param \Google\Cloud\StorageTransfer\V1\NotificationConfig $var - * @return $this - */ - public function setNotificationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\NotificationConfig::class); - $this->notification_config = $var; - - return $this; - } - - /** - * Cloud Logging configuration. - * - * Generated from protobuf field .google.storagetransfer.v1.LoggingConfig logging_config = 12; - * @return \Google\Cloud\StorageTransfer\V1\LoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Cloud Logging configuration. - * - * Generated from protobuf field .google.storagetransfer.v1.LoggingConfig logging_config = 12; - * @param \Google\Cloud\StorageTransfer\V1\LoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\LoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - - /** - * Start time of this transfer execution. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Start time of this transfer execution. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * End time of this transfer execution. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5; - * @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); - } - - /** - * End time of this transfer execution. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Status of the transfer operation. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferOperation.Status status = 6; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Status of the transfer operation. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferOperation.Status status = 6; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\StorageTransfer\V1\TransferOperation\Status::class); - $this->status = $var; - - return $this; - } - - /** - * Information about the progress of the transfer operation. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferCounters counters = 7; - * @return \Google\Cloud\StorageTransfer\V1\TransferCounters|null - */ - public function getCounters() - { - return $this->counters; - } - - public function hasCounters() - { - return isset($this->counters); - } - - public function clearCounters() - { - unset($this->counters); - } - - /** - * Information about the progress of the transfer operation. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferCounters counters = 7; - * @param \Google\Cloud\StorageTransfer\V1\TransferCounters $var - * @return $this - */ - public function setCounters($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\TransferCounters::class); - $this->counters = $var; - - return $this; - } - - /** - * Summarizes errors encountered with sample error log entries. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.ErrorSummary error_breakdowns = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrorBreakdowns() - { - return $this->error_breakdowns; - } - - /** - * Summarizes errors encountered with sample error log entries. - * - * Generated from protobuf field repeated .google.storagetransfer.v1.ErrorSummary error_breakdowns = 8; - * @param array<\Google\Cloud\StorageTransfer\V1\ErrorSummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrorBreakdowns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\StorageTransfer\V1\ErrorSummary::class); - $this->error_breakdowns = $arr; - - return $this; - } - - /** - * The name of the transfer job that triggers this transfer operation. - * - * Generated from protobuf field string transfer_job_name = 9; - * @return string - */ - public function getTransferJobName() - { - return $this->transfer_job_name; - } - - /** - * The name of the transfer job that triggers this transfer operation. - * - * Generated from protobuf field string transfer_job_name = 9; - * @param string $var - * @return $this - */ - public function setTransferJobName($var) - { - GPBUtil::checkString($var, True); - $this->transfer_job_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferOperation/Status.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferOperation/Status.php deleted file mode 100644 index 780e98a79148..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferOperation/Status.php +++ /dev/null @@ -1,99 +0,0 @@ -google.storagetransfer.v1.TransferOperation.Status - */ -class Status -{ - /** - * Zero is an illegal value. - * - * Generated from protobuf enum STATUS_UNSPECIFIED = 0; - */ - const STATUS_UNSPECIFIED = 0; - /** - * In progress. - * - * Generated from protobuf enum IN_PROGRESS = 1; - */ - const IN_PROGRESS = 1; - /** - * Paused. - * - * Generated from protobuf enum PAUSED = 2; - */ - const PAUSED = 2; - /** - * Completed successfully. - * - * Generated from protobuf enum SUCCESS = 3; - */ - const SUCCESS = 3; - /** - * Terminated due to an unrecoverable failure. - * - * Generated from protobuf enum FAILED = 4; - */ - const FAILED = 4; - /** - * Aborted by the user. - * - * Generated from protobuf enum ABORTED = 5; - */ - const ABORTED = 5; - /** - * Temporarily delayed by the system. No user action is required. - * - * Generated from protobuf enum QUEUED = 6; - */ - const QUEUED = 6; - /** - * The operation is suspending and draining the ongoing work to completion. - * - * Generated from protobuf enum SUSPENDING = 7; - */ - const SUSPENDING = 7; - - private static $valueToName = [ - self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', - self::IN_PROGRESS => 'IN_PROGRESS', - self::PAUSED => 'PAUSED', - self::SUCCESS => 'SUCCESS', - self::FAILED => 'FAILED', - self::ABORTED => 'ABORTED', - self::QUEUED => 'QUEUED', - self::SUSPENDING => 'SUSPENDING', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Status::class, \Google\Cloud\StorageTransfer\V1\TransferOperation_Status::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferOptions.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferOptions.php deleted file mode 100644 index 64ec64d7320b..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferOptions.php +++ /dev/null @@ -1,261 +0,0 @@ -google.storagetransfer.v1.TransferOptions - */ -class TransferOptions extends \Google\Protobuf\Internal\Message -{ - /** - * When to overwrite objects that already exist in the sink. The default is - * that only objects that are different from the source are ovewritten. If - * true, all objects in the sink whose name matches an object in the source - * are overwritten with the source object. - * - * Generated from protobuf field bool overwrite_objects_already_existing_in_sink = 1; - */ - protected $overwrite_objects_already_existing_in_sink = false; - /** - * Whether objects that exist only in the sink should be deleted. - * **Note:** This option and - * [delete_objects_from_source_after_transfer][google.storagetransfer.v1.TransferOptions.delete_objects_from_source_after_transfer] - * are mutually exclusive. - * - * Generated from protobuf field bool delete_objects_unique_in_sink = 2; - */ - protected $delete_objects_unique_in_sink = false; - /** - * Whether objects should be deleted from the source after they are - * transferred to the sink. - * **Note:** This option and - * [delete_objects_unique_in_sink][google.storagetransfer.v1.TransferOptions.delete_objects_unique_in_sink] - * are mutually exclusive. - * - * Generated from protobuf field bool delete_objects_from_source_after_transfer = 3; - */ - protected $delete_objects_from_source_after_transfer = false; - /** - * When to overwrite objects that already exist in the sink. If not set, - * overwrite behavior is determined by - * [overwrite_objects_already_existing_in_sink][google.storagetransfer.v1.TransferOptions.overwrite_objects_already_existing_in_sink]. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferOptions.OverwriteWhen overwrite_when = 4; - */ - protected $overwrite_when = 0; - /** - * Represents the selected metadata options for a transfer job. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions metadata_options = 5; - */ - protected $metadata_options = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $overwrite_objects_already_existing_in_sink - * When to overwrite objects that already exist in the sink. The default is - * that only objects that are different from the source are ovewritten. If - * true, all objects in the sink whose name matches an object in the source - * are overwritten with the source object. - * @type bool $delete_objects_unique_in_sink - * Whether objects that exist only in the sink should be deleted. - * **Note:** This option and - * [delete_objects_from_source_after_transfer][google.storagetransfer.v1.TransferOptions.delete_objects_from_source_after_transfer] - * are mutually exclusive. - * @type bool $delete_objects_from_source_after_transfer - * Whether objects should be deleted from the source after they are - * transferred to the sink. - * **Note:** This option and - * [delete_objects_unique_in_sink][google.storagetransfer.v1.TransferOptions.delete_objects_unique_in_sink] - * are mutually exclusive. - * @type int $overwrite_when - * When to overwrite objects that already exist in the sink. If not set, - * overwrite behavior is determined by - * [overwrite_objects_already_existing_in_sink][google.storagetransfer.v1.TransferOptions.overwrite_objects_already_existing_in_sink]. - * @type \Google\Cloud\StorageTransfer\V1\MetadataOptions $metadata_options - * Represents the selected metadata options for a transfer job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * When to overwrite objects that already exist in the sink. The default is - * that only objects that are different from the source are ovewritten. If - * true, all objects in the sink whose name matches an object in the source - * are overwritten with the source object. - * - * Generated from protobuf field bool overwrite_objects_already_existing_in_sink = 1; - * @return bool - */ - public function getOverwriteObjectsAlreadyExistingInSink() - { - return $this->overwrite_objects_already_existing_in_sink; - } - - /** - * When to overwrite objects that already exist in the sink. The default is - * that only objects that are different from the source are ovewritten. If - * true, all objects in the sink whose name matches an object in the source - * are overwritten with the source object. - * - * Generated from protobuf field bool overwrite_objects_already_existing_in_sink = 1; - * @param bool $var - * @return $this - */ - public function setOverwriteObjectsAlreadyExistingInSink($var) - { - GPBUtil::checkBool($var); - $this->overwrite_objects_already_existing_in_sink = $var; - - return $this; - } - - /** - * Whether objects that exist only in the sink should be deleted. - * **Note:** This option and - * [delete_objects_from_source_after_transfer][google.storagetransfer.v1.TransferOptions.delete_objects_from_source_after_transfer] - * are mutually exclusive. - * - * Generated from protobuf field bool delete_objects_unique_in_sink = 2; - * @return bool - */ - public function getDeleteObjectsUniqueInSink() - { - return $this->delete_objects_unique_in_sink; - } - - /** - * Whether objects that exist only in the sink should be deleted. - * **Note:** This option and - * [delete_objects_from_source_after_transfer][google.storagetransfer.v1.TransferOptions.delete_objects_from_source_after_transfer] - * are mutually exclusive. - * - * Generated from protobuf field bool delete_objects_unique_in_sink = 2; - * @param bool $var - * @return $this - */ - public function setDeleteObjectsUniqueInSink($var) - { - GPBUtil::checkBool($var); - $this->delete_objects_unique_in_sink = $var; - - return $this; - } - - /** - * Whether objects should be deleted from the source after they are - * transferred to the sink. - * **Note:** This option and - * [delete_objects_unique_in_sink][google.storagetransfer.v1.TransferOptions.delete_objects_unique_in_sink] - * are mutually exclusive. - * - * Generated from protobuf field bool delete_objects_from_source_after_transfer = 3; - * @return bool - */ - public function getDeleteObjectsFromSourceAfterTransfer() - { - return $this->delete_objects_from_source_after_transfer; - } - - /** - * Whether objects should be deleted from the source after they are - * transferred to the sink. - * **Note:** This option and - * [delete_objects_unique_in_sink][google.storagetransfer.v1.TransferOptions.delete_objects_unique_in_sink] - * are mutually exclusive. - * - * Generated from protobuf field bool delete_objects_from_source_after_transfer = 3; - * @param bool $var - * @return $this - */ - public function setDeleteObjectsFromSourceAfterTransfer($var) - { - GPBUtil::checkBool($var); - $this->delete_objects_from_source_after_transfer = $var; - - return $this; - } - - /** - * When to overwrite objects that already exist in the sink. If not set, - * overwrite behavior is determined by - * [overwrite_objects_already_existing_in_sink][google.storagetransfer.v1.TransferOptions.overwrite_objects_already_existing_in_sink]. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferOptions.OverwriteWhen overwrite_when = 4; - * @return int - */ - public function getOverwriteWhen() - { - return $this->overwrite_when; - } - - /** - * When to overwrite objects that already exist in the sink. If not set, - * overwrite behavior is determined by - * [overwrite_objects_already_existing_in_sink][google.storagetransfer.v1.TransferOptions.overwrite_objects_already_existing_in_sink]. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferOptions.OverwriteWhen overwrite_when = 4; - * @param int $var - * @return $this - */ - public function setOverwriteWhen($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\StorageTransfer\V1\TransferOptions\OverwriteWhen::class); - $this->overwrite_when = $var; - - return $this; - } - - /** - * Represents the selected metadata options for a transfer job. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions metadata_options = 5; - * @return \Google\Cloud\StorageTransfer\V1\MetadataOptions|null - */ - public function getMetadataOptions() - { - return $this->metadata_options; - } - - public function hasMetadataOptions() - { - return isset($this->metadata_options); - } - - public function clearMetadataOptions() - { - unset($this->metadata_options); - } - - /** - * Represents the selected metadata options for a transfer job. - * - * Generated from protobuf field .google.storagetransfer.v1.MetadataOptions metadata_options = 5; - * @param \Google\Cloud\StorageTransfer\V1\MetadataOptions $var - * @return $this - */ - public function setMetadataOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\MetadataOptions::class); - $this->metadata_options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferOptions/OverwriteWhen.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferOptions/OverwriteWhen.php deleted file mode 100644 index c8287bcc3efd..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferOptions/OverwriteWhen.php +++ /dev/null @@ -1,75 +0,0 @@ -google.storagetransfer.v1.TransferOptions.OverwriteWhen - */ -class OverwriteWhen -{ - /** - * Overwrite behavior is unspecified. - * - * Generated from protobuf enum OVERWRITE_WHEN_UNSPECIFIED = 0; - */ - const OVERWRITE_WHEN_UNSPECIFIED = 0; - /** - * Overwrites destination objects with the source objects, only if the - * objects have the same name but different HTTP ETags or checksum values. - * - * Generated from protobuf enum DIFFERENT = 1; - */ - const DIFFERENT = 1; - /** - * Never overwrites a destination object if a source object has the - * same name. In this case, the source object is not transferred. - * - * Generated from protobuf enum NEVER = 2; - */ - const NEVER = 2; - /** - * Always overwrite the destination object with the source object, even if - * the HTTP Etags or checksum values are the same. - * - * Generated from protobuf enum ALWAYS = 3; - */ - const ALWAYS = 3; - - private static $valueToName = [ - self::OVERWRITE_WHEN_UNSPECIFIED => 'OVERWRITE_WHEN_UNSPECIFIED', - self::DIFFERENT => 'DIFFERENT', - self::NEVER => 'NEVER', - self::ALWAYS => 'ALWAYS', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OverwriteWhen::class, \Google\Cloud\StorageTransfer\V1\TransferOptions_OverwriteWhen::class); - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferSpec.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferSpec.php deleted file mode 100644 index 28466a839393..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/TransferSpec.php +++ /dev/null @@ -1,642 +0,0 @@ -google.storagetransfer.v1.TransferSpec - */ -class TransferSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Only objects that satisfy these object conditions are included in the set - * of data source and data sink objects. Object conditions based on - * objects' "last modification time" do not exclude objects in a data sink. - * - * Generated from protobuf field .google.storagetransfer.v1.ObjectConditions object_conditions = 5; - */ - protected $object_conditions = null; - /** - * If the option - * [delete_objects_unique_in_sink][google.storagetransfer.v1.TransferOptions.delete_objects_unique_in_sink] - * is `true` and time-based object conditions such as 'last modification time' - * are specified, the request fails with an - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferOptions transfer_options = 6; - */ - protected $transfer_options = null; - /** - * A manifest file provides a list of objects to be transferred from the data - * source. This field points to the location of the manifest file. - * Otherwise, the entire source bucket is used. ObjectConditions still apply. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferManifest transfer_manifest = 15; - */ - protected $transfer_manifest = null; - /** - * Specifies the agent pool name associated with the posix data source. When - * unspecified, the default name is used. - * - * Generated from protobuf field string source_agent_pool_name = 17; - */ - protected $source_agent_pool_name = ''; - /** - * Specifies the agent pool name associated with the posix data sink. When - * unspecified, the default name is used. - * - * Generated from protobuf field string sink_agent_pool_name = 18; - */ - protected $sink_agent_pool_name = ''; - protected $data_sink; - protected $data_source; - protected $intermediate_data_location; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\StorageTransfer\V1\GcsData $gcs_data_sink - * A Cloud Storage data sink. - * @type \Google\Cloud\StorageTransfer\V1\PosixFilesystem $posix_data_sink - * A POSIX Filesystem data sink. - * @type \Google\Cloud\StorageTransfer\V1\GcsData $gcs_data_source - * A Cloud Storage data source. - * @type \Google\Cloud\StorageTransfer\V1\AwsS3Data $aws_s3_data_source - * An AWS S3 data source. - * @type \Google\Cloud\StorageTransfer\V1\HttpData $http_data_source - * An HTTP URL data source. - * @type \Google\Cloud\StorageTransfer\V1\PosixFilesystem $posix_data_source - * A POSIX Filesystem data source. - * @type \Google\Cloud\StorageTransfer\V1\AzureBlobStorageData $azure_blob_storage_data_source - * An Azure Blob Storage data source. - * @type \Google\Cloud\StorageTransfer\V1\AwsS3CompatibleData $aws_s3_compatible_data_source - * An AWS S3 compatible data source. - * @type \Google\Cloud\StorageTransfer\V1\HdfsData $hdfs_data_source - * An HDFS cluster data source. - * @type \Google\Cloud\StorageTransfer\V1\GcsData $gcs_intermediate_data_location - * For transfers between file systems, specifies a Cloud Storage bucket - * to be used as an intermediate location through which to transfer data. - * See [Transfer data between file - * systems](https://cloud.google.com/storage-transfer/docs/file-to-file) for - * more information. - * @type \Google\Cloud\StorageTransfer\V1\ObjectConditions $object_conditions - * Only objects that satisfy these object conditions are included in the set - * of data source and data sink objects. Object conditions based on - * objects' "last modification time" do not exclude objects in a data sink. - * @type \Google\Cloud\StorageTransfer\V1\TransferOptions $transfer_options - * If the option - * [delete_objects_unique_in_sink][google.storagetransfer.v1.TransferOptions.delete_objects_unique_in_sink] - * is `true` and time-based object conditions such as 'last modification time' - * are specified, the request fails with an - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error. - * @type \Google\Cloud\StorageTransfer\V1\TransferManifest $transfer_manifest - * A manifest file provides a list of objects to be transferred from the data - * source. This field points to the location of the manifest file. - * Otherwise, the entire source bucket is used. ObjectConditions still apply. - * @type string $source_agent_pool_name - * Specifies the agent pool name associated with the posix data source. When - * unspecified, the default name is used. - * @type string $sink_agent_pool_name - * Specifies the agent pool name associated with the posix data sink. When - * unspecified, the default name is used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce(); - parent::__construct($data); - } - - /** - * A Cloud Storage data sink. - * - * Generated from protobuf field .google.storagetransfer.v1.GcsData gcs_data_sink = 4; - * @return \Google\Cloud\StorageTransfer\V1\GcsData|null - */ - public function getGcsDataSink() - { - return $this->readOneof(4); - } - - public function hasGcsDataSink() - { - return $this->hasOneof(4); - } - - /** - * A Cloud Storage data sink. - * - * Generated from protobuf field .google.storagetransfer.v1.GcsData gcs_data_sink = 4; - * @param \Google\Cloud\StorageTransfer\V1\GcsData $var - * @return $this - */ - public function setGcsDataSink($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\GcsData::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A POSIX Filesystem data sink. - * - * Generated from protobuf field .google.storagetransfer.v1.PosixFilesystem posix_data_sink = 13; - * @return \Google\Cloud\StorageTransfer\V1\PosixFilesystem|null - */ - public function getPosixDataSink() - { - return $this->readOneof(13); - } - - public function hasPosixDataSink() - { - return $this->hasOneof(13); - } - - /** - * A POSIX Filesystem data sink. - * - * Generated from protobuf field .google.storagetransfer.v1.PosixFilesystem posix_data_sink = 13; - * @param \Google\Cloud\StorageTransfer\V1\PosixFilesystem $var - * @return $this - */ - public function setPosixDataSink($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\PosixFilesystem::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * A Cloud Storage data source. - * - * Generated from protobuf field .google.storagetransfer.v1.GcsData gcs_data_source = 1; - * @return \Google\Cloud\StorageTransfer\V1\GcsData|null - */ - public function getGcsDataSource() - { - return $this->readOneof(1); - } - - public function hasGcsDataSource() - { - return $this->hasOneof(1); - } - - /** - * A Cloud Storage data source. - * - * Generated from protobuf field .google.storagetransfer.v1.GcsData gcs_data_source = 1; - * @param \Google\Cloud\StorageTransfer\V1\GcsData $var - * @return $this - */ - public function setGcsDataSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\GcsData::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * An AWS S3 data source. - * - * Generated from protobuf field .google.storagetransfer.v1.AwsS3Data aws_s3_data_source = 2; - * @return \Google\Cloud\StorageTransfer\V1\AwsS3Data|null - */ - public function getAwsS3DataSource() - { - return $this->readOneof(2); - } - - public function hasAwsS3DataSource() - { - return $this->hasOneof(2); - } - - /** - * An AWS S3 data source. - * - * Generated from protobuf field .google.storagetransfer.v1.AwsS3Data aws_s3_data_source = 2; - * @param \Google\Cloud\StorageTransfer\V1\AwsS3Data $var - * @return $this - */ - public function setAwsS3DataSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\AwsS3Data::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * An HTTP URL data source. - * - * Generated from protobuf field .google.storagetransfer.v1.HttpData http_data_source = 3; - * @return \Google\Cloud\StorageTransfer\V1\HttpData|null - */ - public function getHttpDataSource() - { - return $this->readOneof(3); - } - - public function hasHttpDataSource() - { - return $this->hasOneof(3); - } - - /** - * An HTTP URL data source. - * - * Generated from protobuf field .google.storagetransfer.v1.HttpData http_data_source = 3; - * @param \Google\Cloud\StorageTransfer\V1\HttpData $var - * @return $this - */ - public function setHttpDataSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\HttpData::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A POSIX Filesystem data source. - * - * Generated from protobuf field .google.storagetransfer.v1.PosixFilesystem posix_data_source = 14; - * @return \Google\Cloud\StorageTransfer\V1\PosixFilesystem|null - */ - public function getPosixDataSource() - { - return $this->readOneof(14); - } - - public function hasPosixDataSource() - { - return $this->hasOneof(14); - } - - /** - * A POSIX Filesystem data source. - * - * Generated from protobuf field .google.storagetransfer.v1.PosixFilesystem posix_data_source = 14; - * @param \Google\Cloud\StorageTransfer\V1\PosixFilesystem $var - * @return $this - */ - public function setPosixDataSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\PosixFilesystem::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * An Azure Blob Storage data source. - * - * Generated from protobuf field .google.storagetransfer.v1.AzureBlobStorageData azure_blob_storage_data_source = 8; - * @return \Google\Cloud\StorageTransfer\V1\AzureBlobStorageData|null - */ - public function getAzureBlobStorageDataSource() - { - return $this->readOneof(8); - } - - public function hasAzureBlobStorageDataSource() - { - return $this->hasOneof(8); - } - - /** - * An Azure Blob Storage data source. - * - * Generated from protobuf field .google.storagetransfer.v1.AzureBlobStorageData azure_blob_storage_data_source = 8; - * @param \Google\Cloud\StorageTransfer\V1\AzureBlobStorageData $var - * @return $this - */ - public function setAzureBlobStorageDataSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\AzureBlobStorageData::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * An AWS S3 compatible data source. - * - * Generated from protobuf field .google.storagetransfer.v1.AwsS3CompatibleData aws_s3_compatible_data_source = 19; - * @return \Google\Cloud\StorageTransfer\V1\AwsS3CompatibleData|null - */ - public function getAwsS3CompatibleDataSource() - { - return $this->readOneof(19); - } - - public function hasAwsS3CompatibleDataSource() - { - return $this->hasOneof(19); - } - - /** - * An AWS S3 compatible data source. - * - * Generated from protobuf field .google.storagetransfer.v1.AwsS3CompatibleData aws_s3_compatible_data_source = 19; - * @param \Google\Cloud\StorageTransfer\V1\AwsS3CompatibleData $var - * @return $this - */ - public function setAwsS3CompatibleDataSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\AwsS3CompatibleData::class); - $this->writeOneof(19, $var); - - return $this; - } - - /** - * An HDFS cluster data source. - * - * Generated from protobuf field .google.storagetransfer.v1.HdfsData hdfs_data_source = 20; - * @return \Google\Cloud\StorageTransfer\V1\HdfsData|null - */ - public function getHdfsDataSource() - { - return $this->readOneof(20); - } - - public function hasHdfsDataSource() - { - return $this->hasOneof(20); - } - - /** - * An HDFS cluster data source. - * - * Generated from protobuf field .google.storagetransfer.v1.HdfsData hdfs_data_source = 20; - * @param \Google\Cloud\StorageTransfer\V1\HdfsData $var - * @return $this - */ - public function setHdfsDataSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\HdfsData::class); - $this->writeOneof(20, $var); - - return $this; - } - - /** - * For transfers between file systems, specifies a Cloud Storage bucket - * to be used as an intermediate location through which to transfer data. - * See [Transfer data between file - * systems](https://cloud.google.com/storage-transfer/docs/file-to-file) for - * more information. - * - * Generated from protobuf field .google.storagetransfer.v1.GcsData gcs_intermediate_data_location = 16; - * @return \Google\Cloud\StorageTransfer\V1\GcsData|null - */ - public function getGcsIntermediateDataLocation() - { - return $this->readOneof(16); - } - - public function hasGcsIntermediateDataLocation() - { - return $this->hasOneof(16); - } - - /** - * For transfers between file systems, specifies a Cloud Storage bucket - * to be used as an intermediate location through which to transfer data. - * See [Transfer data between file - * systems](https://cloud.google.com/storage-transfer/docs/file-to-file) for - * more information. - * - * Generated from protobuf field .google.storagetransfer.v1.GcsData gcs_intermediate_data_location = 16; - * @param \Google\Cloud\StorageTransfer\V1\GcsData $var - * @return $this - */ - public function setGcsIntermediateDataLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\GcsData::class); - $this->writeOneof(16, $var); - - return $this; - } - - /** - * Only objects that satisfy these object conditions are included in the set - * of data source and data sink objects. Object conditions based on - * objects' "last modification time" do not exclude objects in a data sink. - * - * Generated from protobuf field .google.storagetransfer.v1.ObjectConditions object_conditions = 5; - * @return \Google\Cloud\StorageTransfer\V1\ObjectConditions|null - */ - public function getObjectConditions() - { - return $this->object_conditions; - } - - public function hasObjectConditions() - { - return isset($this->object_conditions); - } - - public function clearObjectConditions() - { - unset($this->object_conditions); - } - - /** - * Only objects that satisfy these object conditions are included in the set - * of data source and data sink objects. Object conditions based on - * objects' "last modification time" do not exclude objects in a data sink. - * - * Generated from protobuf field .google.storagetransfer.v1.ObjectConditions object_conditions = 5; - * @param \Google\Cloud\StorageTransfer\V1\ObjectConditions $var - * @return $this - */ - public function setObjectConditions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\ObjectConditions::class); - $this->object_conditions = $var; - - return $this; - } - - /** - * If the option - * [delete_objects_unique_in_sink][google.storagetransfer.v1.TransferOptions.delete_objects_unique_in_sink] - * is `true` and time-based object conditions such as 'last modification time' - * are specified, the request fails with an - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferOptions transfer_options = 6; - * @return \Google\Cloud\StorageTransfer\V1\TransferOptions|null - */ - public function getTransferOptions() - { - return $this->transfer_options; - } - - public function hasTransferOptions() - { - return isset($this->transfer_options); - } - - public function clearTransferOptions() - { - unset($this->transfer_options); - } - - /** - * If the option - * [delete_objects_unique_in_sink][google.storagetransfer.v1.TransferOptions.delete_objects_unique_in_sink] - * is `true` and time-based object conditions such as 'last modification time' - * are specified, the request fails with an - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferOptions transfer_options = 6; - * @param \Google\Cloud\StorageTransfer\V1\TransferOptions $var - * @return $this - */ - public function setTransferOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\TransferOptions::class); - $this->transfer_options = $var; - - return $this; - } - - /** - * A manifest file provides a list of objects to be transferred from the data - * source. This field points to the location of the manifest file. - * Otherwise, the entire source bucket is used. ObjectConditions still apply. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferManifest transfer_manifest = 15; - * @return \Google\Cloud\StorageTransfer\V1\TransferManifest|null - */ - public function getTransferManifest() - { - return $this->transfer_manifest; - } - - public function hasTransferManifest() - { - return isset($this->transfer_manifest); - } - - public function clearTransferManifest() - { - unset($this->transfer_manifest); - } - - /** - * A manifest file provides a list of objects to be transferred from the data - * source. This field points to the location of the manifest file. - * Otherwise, the entire source bucket is used. ObjectConditions still apply. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferManifest transfer_manifest = 15; - * @param \Google\Cloud\StorageTransfer\V1\TransferManifest $var - * @return $this - */ - public function setTransferManifest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\TransferManifest::class); - $this->transfer_manifest = $var; - - return $this; - } - - /** - * Specifies the agent pool name associated with the posix data source. When - * unspecified, the default name is used. - * - * Generated from protobuf field string source_agent_pool_name = 17; - * @return string - */ - public function getSourceAgentPoolName() - { - return $this->source_agent_pool_name; - } - - /** - * Specifies the agent pool name associated with the posix data source. When - * unspecified, the default name is used. - * - * Generated from protobuf field string source_agent_pool_name = 17; - * @param string $var - * @return $this - */ - public function setSourceAgentPoolName($var) - { - GPBUtil::checkString($var, True); - $this->source_agent_pool_name = $var; - - return $this; - } - - /** - * Specifies the agent pool name associated with the posix data sink. When - * unspecified, the default name is used. - * - * Generated from protobuf field string sink_agent_pool_name = 18; - * @return string - */ - public function getSinkAgentPoolName() - { - return $this->sink_agent_pool_name; - } - - /** - * Specifies the agent pool name associated with the posix data sink. When - * unspecified, the default name is used. - * - * Generated from protobuf field string sink_agent_pool_name = 18; - * @param string $var - * @return $this - */ - public function setSinkAgentPoolName($var) - { - GPBUtil::checkString($var, True); - $this->sink_agent_pool_name = $var; - - return $this; - } - - /** - * @return string - */ - public function getDataSink() - { - return $this->whichOneof("data_sink"); - } - - /** - * @return string - */ - public function getDataSource() - { - return $this->whichOneof("data_source"); - } - - /** - * @return string - */ - public function getIntermediateDataLocation() - { - return $this->whichOneof("intermediate_data_location"); - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/UpdateAgentPoolRequest.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/UpdateAgentPoolRequest.php deleted file mode 100644 index 5be6031ef1f1..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/UpdateAgentPoolRequest.php +++ /dev/null @@ -1,196 +0,0 @@ -google.storagetransfer.v1.UpdateAgentPoolRequest - */ -class UpdateAgentPoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The agent pool to update. `agent_pool` is expected to specify - * following fields: - * * [name][google.storagetransfer.v1.AgentPool.name] - * * [display_name][google.storagetransfer.v1.AgentPool.display_name] - * * [bandwidth_limit][google.storagetransfer.v1.AgentPool.bandwidth_limit] - * An `UpdateAgentPoolRequest` with any other fields is rejected - * with the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. - * - * Generated from protobuf field .google.storagetransfer.v1.AgentPool agent_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $agent_pool = null; - /** - * The [field mask] - * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf) - * of the fields in `agentPool` to update in this request. - * The following `agentPool` fields can be updated: - * * [display_name][google.storagetransfer.v1.AgentPool.display_name] - * * [bandwidth_limit][google.storagetransfer.v1.AgentPool.bandwidth_limit] - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\StorageTransfer\V1\AgentPool $agentPool Required. The agent pool to update. `agent_pool` is expected to specify - * following fields: - * - * * [name][google.storagetransfer.v1.AgentPool.name] - * - * * [display_name][google.storagetransfer.v1.AgentPool.display_name] - * - * * [bandwidth_limit][google.storagetransfer.v1.AgentPool.bandwidth_limit] - * An `UpdateAgentPoolRequest` with any other fields is rejected - * with the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. - * @param \Google\Protobuf\FieldMask $updateMask The [field mask] - * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf) - * of the fields in `agentPool` to update in this request. - * The following `agentPool` fields can be updated: - * - * * [display_name][google.storagetransfer.v1.AgentPool.display_name] - * - * * [bandwidth_limit][google.storagetransfer.v1.AgentPool.bandwidth_limit] - * - * @return \Google\Cloud\StorageTransfer\V1\UpdateAgentPoolRequest - * - * @experimental - */ - public static function build(\Google\Cloud\StorageTransfer\V1\AgentPool $agentPool, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setAgentPool($agentPool) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\StorageTransfer\V1\AgentPool $agent_pool - * Required. The agent pool to update. `agent_pool` is expected to specify - * following fields: - * * [name][google.storagetransfer.v1.AgentPool.name] - * * [display_name][google.storagetransfer.v1.AgentPool.display_name] - * * [bandwidth_limit][google.storagetransfer.v1.AgentPool.bandwidth_limit] - * An `UpdateAgentPoolRequest` with any other fields is rejected - * with the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. - * @type \Google\Protobuf\FieldMask $update_mask - * The [field mask] - * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf) - * of the fields in `agentPool` to update in this request. - * The following `agentPool` fields can be updated: - * * [display_name][google.storagetransfer.v1.AgentPool.display_name] - * * [bandwidth_limit][google.storagetransfer.v1.AgentPool.bandwidth_limit] - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\Transfer::initOnce(); - parent::__construct($data); - } - - /** - * Required. The agent pool to update. `agent_pool` is expected to specify - * following fields: - * * [name][google.storagetransfer.v1.AgentPool.name] - * * [display_name][google.storagetransfer.v1.AgentPool.display_name] - * * [bandwidth_limit][google.storagetransfer.v1.AgentPool.bandwidth_limit] - * An `UpdateAgentPoolRequest` with any other fields is rejected - * with the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. - * - * Generated from protobuf field .google.storagetransfer.v1.AgentPool agent_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\StorageTransfer\V1\AgentPool|null - */ - public function getAgentPool() - { - return $this->agent_pool; - } - - public function hasAgentPool() - { - return isset($this->agent_pool); - } - - public function clearAgentPool() - { - unset($this->agent_pool); - } - - /** - * Required. The agent pool to update. `agent_pool` is expected to specify - * following fields: - * * [name][google.storagetransfer.v1.AgentPool.name] - * * [display_name][google.storagetransfer.v1.AgentPool.display_name] - * * [bandwidth_limit][google.storagetransfer.v1.AgentPool.bandwidth_limit] - * An `UpdateAgentPoolRequest` with any other fields is rejected - * with the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. - * - * Generated from protobuf field .google.storagetransfer.v1.AgentPool agent_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\StorageTransfer\V1\AgentPool $var - * @return $this - */ - public function setAgentPool($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\AgentPool::class); - $this->agent_pool = $var; - - return $this; - } - - /** - * The [field mask] - * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf) - * of the fields in `agentPool` to update in this request. - * The following `agentPool` fields can be updated: - * * [display_name][google.storagetransfer.v1.AgentPool.display_name] - * * [bandwidth_limit][google.storagetransfer.v1.AgentPool.bandwidth_limit] - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @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); - } - - /** - * The [field mask] - * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf) - * of the fields in `agentPool` to update in this request. - * The following `agentPool` fields can be updated: - * * [display_name][google.storagetransfer.v1.AgentPool.display_name] - * * [bandwidth_limit][google.storagetransfer.v1.AgentPool.bandwidth_limit] - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/UpdateTransferJobRequest.php b/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/UpdateTransferJobRequest.php deleted file mode 100644 index 569b3c14ca52..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/proto/src/Google/Cloud/StorageTransfer/V1/UpdateTransferJobRequest.php +++ /dev/null @@ -1,277 +0,0 @@ -google.storagetransfer.v1.UpdateTransferJobRequest - */ -class UpdateTransferJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of job to update. - * - * Generated from protobuf field string job_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $job_name = ''; - /** - * Required. The ID of the Google Cloud project that owns the - * job. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * Required. The job to update. `transferJob` is expected to specify one or - * more of five fields: - * [description][google.storagetransfer.v1.TransferJob.description], - * [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec], - * [notification_config][google.storagetransfer.v1.TransferJob.notification_config], - * [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and - * [status][google.storagetransfer.v1.TransferJob.status]. An - * `UpdateTransferJobRequest` that specifies other fields are rejected with - * the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. Updating a - * job status to - * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] requires - * `storagetransfer.jobs.delete` permission. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $transfer_job = null; - /** - * The field mask of the fields in `transferJob` that are to be updated in - * this request. Fields in `transferJob` that can be updated are: - * [description][google.storagetransfer.v1.TransferJob.description], - * [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec], - * [notification_config][google.storagetransfer.v1.TransferJob.notification_config], - * [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and - * [status][google.storagetransfer.v1.TransferJob.status]. To update the - * `transfer_spec` of the job, a complete transfer specification must be - * provided. An incomplete specification missing any required fields is - * rejected with the error - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. - * - * Generated from protobuf field .google.protobuf.FieldMask update_transfer_job_field_mask = 4; - */ - protected $update_transfer_job_field_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $job_name - * Required. The name of job to update. - * @type string $project_id - * Required. The ID of the Google Cloud project that owns the - * job. - * @type \Google\Cloud\StorageTransfer\V1\TransferJob $transfer_job - * Required. The job to update. `transferJob` is expected to specify one or - * more of five fields: - * [description][google.storagetransfer.v1.TransferJob.description], - * [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec], - * [notification_config][google.storagetransfer.v1.TransferJob.notification_config], - * [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and - * [status][google.storagetransfer.v1.TransferJob.status]. An - * `UpdateTransferJobRequest` that specifies other fields are rejected with - * the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. Updating a - * job status to - * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] requires - * `storagetransfer.jobs.delete` permission. - * @type \Google\Protobuf\FieldMask $update_transfer_job_field_mask - * The field mask of the fields in `transferJob` that are to be updated in - * this request. Fields in `transferJob` that can be updated are: - * [description][google.storagetransfer.v1.TransferJob.description], - * [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec], - * [notification_config][google.storagetransfer.v1.TransferJob.notification_config], - * [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and - * [status][google.storagetransfer.v1.TransferJob.status]. To update the - * `transfer_spec` of the job, a complete transfer specification must be - * provided. An incomplete specification missing any required fields is - * rejected with the error - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Storagetransfer\V1\Transfer::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of job to update. - * - * Generated from protobuf field string job_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getJobName() - { - return $this->job_name; - } - - /** - * Required. The name of job to update. - * - * Generated from protobuf field string job_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setJobName($var) - { - GPBUtil::checkString($var, True); - $this->job_name = $var; - - return $this; - } - - /** - * Required. The ID of the Google Cloud project that owns the - * job. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the Google Cloud project that owns the - * job. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The job to update. `transferJob` is expected to specify one or - * more of five fields: - * [description][google.storagetransfer.v1.TransferJob.description], - * [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec], - * [notification_config][google.storagetransfer.v1.TransferJob.notification_config], - * [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and - * [status][google.storagetransfer.v1.TransferJob.status]. An - * `UpdateTransferJobRequest` that specifies other fields are rejected with - * the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. Updating a - * job status to - * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] requires - * `storagetransfer.jobs.delete` permission. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\StorageTransfer\V1\TransferJob|null - */ - public function getTransferJob() - { - return $this->transfer_job; - } - - public function hasTransferJob() - { - return isset($this->transfer_job); - } - - public function clearTransferJob() - { - unset($this->transfer_job); - } - - /** - * Required. The job to update. `transferJob` is expected to specify one or - * more of five fields: - * [description][google.storagetransfer.v1.TransferJob.description], - * [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec], - * [notification_config][google.storagetransfer.v1.TransferJob.notification_config], - * [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and - * [status][google.storagetransfer.v1.TransferJob.status]. An - * `UpdateTransferJobRequest` that specifies other fields are rejected with - * the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. Updating a - * job status to - * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] requires - * `storagetransfer.jobs.delete` permission. - * - * Generated from protobuf field .google.storagetransfer.v1.TransferJob transfer_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\StorageTransfer\V1\TransferJob $var - * @return $this - */ - public function setTransferJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\StorageTransfer\V1\TransferJob::class); - $this->transfer_job = $var; - - return $this; - } - - /** - * The field mask of the fields in `transferJob` that are to be updated in - * this request. Fields in `transferJob` that can be updated are: - * [description][google.storagetransfer.v1.TransferJob.description], - * [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec], - * [notification_config][google.storagetransfer.v1.TransferJob.notification_config], - * [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and - * [status][google.storagetransfer.v1.TransferJob.status]. To update the - * `transfer_spec` of the job, a complete transfer specification must be - * provided. An incomplete specification missing any required fields is - * rejected with the error - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. - * - * Generated from protobuf field .google.protobuf.FieldMask update_transfer_job_field_mask = 4; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateTransferJobFieldMask() - { - return $this->update_transfer_job_field_mask; - } - - public function hasUpdateTransferJobFieldMask() - { - return isset($this->update_transfer_job_field_mask); - } - - public function clearUpdateTransferJobFieldMask() - { - unset($this->update_transfer_job_field_mask); - } - - /** - * The field mask of the fields in `transferJob` that are to be updated in - * this request. Fields in `transferJob` that can be updated are: - * [description][google.storagetransfer.v1.TransferJob.description], - * [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec], - * [notification_config][google.storagetransfer.v1.TransferJob.notification_config], - * [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and - * [status][google.storagetransfer.v1.TransferJob.status]. To update the - * `transfer_spec` of the job, a complete transfer specification must be - * provided. An incomplete specification missing any required fields is - * rejected with the error - * [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. - * - * Generated from protobuf field .google.protobuf.FieldMask update_transfer_job_field_mask = 4; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateTransferJobFieldMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_transfer_job_field_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/create_agent_pool.php b/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/create_agent_pool.php deleted file mode 100644 index 32cce959bf7c..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/create_agent_pool.php +++ /dev/null @@ -1,96 +0,0 @@ -setName($agentPoolName); - $request = (new CreateAgentPoolRequest()) - ->setProjectId($projectId) - ->setAgentPool($agentPool) - ->setAgentPoolId($agentPoolId); - - // Call the API and handle any network failures. - try { - /** @var AgentPool $response */ - $response = $storageTransferServiceClient->createAgentPool($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 -{ - $projectId = '[PROJECT_ID]'; - $agentPoolName = '[NAME]'; - $agentPoolId = '[AGENT_POOL_ID]'; - - create_agent_pool_sample($projectId, $agentPoolName, $agentPoolId); -} -// [END storagetransfer_v1_generated_StorageTransferService_CreateAgentPool_sync] diff --git a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/create_transfer_job.php b/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/create_transfer_job.php deleted file mode 100644 index d438f00b0091..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/create_transfer_job.php +++ /dev/null @@ -1,59 +0,0 @@ -setTransferJob($transferJob); - - // Call the API and handle any network failures. - try { - /** @var TransferJob $response */ - $response = $storageTransferServiceClient->createTransferJob($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END storagetransfer_v1_generated_StorageTransferService_CreateTransferJob_sync] diff --git a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/delete_agent_pool.php b/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/delete_agent_pool.php deleted file mode 100644 index 67fc8d9b15cd..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/delete_agent_pool.php +++ /dev/null @@ -1,68 +0,0 @@ -setName($name); - - // Call the API and handle any network failures. - try { - $storageTransferServiceClient->deleteAgentPool($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 -{ - $name = '[NAME]'; - - delete_agent_pool_sample($name); -} -// [END storagetransfer_v1_generated_StorageTransferService_DeleteAgentPool_sync] diff --git a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/delete_transfer_job.php b/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/delete_transfer_job.php deleted file mode 100644 index 07ebf77d734a..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/delete_transfer_job.php +++ /dev/null @@ -1,73 +0,0 @@ -setJobName($jobName) - ->setProjectId($projectId); - - // Call the API and handle any network failures. - try { - $storageTransferServiceClient->deleteTransferJob($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 -{ - $jobName = '[JOB_NAME]'; - $projectId = '[PROJECT_ID]'; - - delete_transfer_job_sample($jobName, $projectId); -} -// [END storagetransfer_v1_generated_StorageTransferService_DeleteTransferJob_sync] diff --git a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/get_agent_pool.php b/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/get_agent_pool.php deleted file mode 100644 index f5eeed1e2477..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/get_agent_pool.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($name); - - // Call the API and handle any network failures. - try { - /** @var AgentPool $response */ - $response = $storageTransferServiceClient->getAgentPool($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 -{ - $name = '[NAME]'; - - get_agent_pool_sample($name); -} -// [END storagetransfer_v1_generated_StorageTransferService_GetAgentPool_sync] diff --git a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/get_google_service_account.php b/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/get_google_service_account.php deleted file mode 100644 index 33ace4d42240..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/get_google_service_account.php +++ /dev/null @@ -1,78 +0,0 @@ -setProjectId($projectId); - - // Call the API and handle any network failures. - try { - /** @var GoogleServiceAccount $response */ - $response = $storageTransferServiceClient->getGoogleServiceAccount($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 -{ - $projectId = '[PROJECT_ID]'; - - get_google_service_account_sample($projectId); -} -// [END storagetransfer_v1_generated_StorageTransferService_GetGoogleServiceAccount_sync] diff --git a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/get_transfer_job.php b/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/get_transfer_job.php deleted file mode 100644 index 0c91f0f8b622..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/get_transfer_job.php +++ /dev/null @@ -1,74 +0,0 @@ -setJobName($jobName) - ->setProjectId($projectId); - - // Call the API and handle any network failures. - try { - /** @var TransferJob $response */ - $response = $storageTransferServiceClient->getTransferJob($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 -{ - $jobName = '[JOB_NAME]'; - $projectId = '[PROJECT_ID]'; - - get_transfer_job_sample($jobName, $projectId); -} -// [END storagetransfer_v1_generated_StorageTransferService_GetTransferJob_sync] diff --git a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/list_agent_pools.php b/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/list_agent_pools.php deleted file mode 100644 index e5d6660252e5..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/list_agent_pools.php +++ /dev/null @@ -1,75 +0,0 @@ -setProjectId($projectId); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $storageTransferServiceClient->listAgentPools($request); - - /** @var AgentPool $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 -{ - $projectId = '[PROJECT_ID]'; - - list_agent_pools_sample($projectId); -} -// [END storagetransfer_v1_generated_StorageTransferService_ListAgentPools_sync] diff --git a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/list_transfer_jobs.php b/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/list_transfer_jobs.php deleted file mode 100644 index f60c3999a025..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/list_transfer_jobs.php +++ /dev/null @@ -1,101 +0,0 @@ -setFilter($filter); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $storageTransferServiceClient->listTransferJobs($request); - - /** @var TransferJob $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 -{ - $filter = '[FILTER]'; - - list_transfer_jobs_sample($filter); -} -// [END storagetransfer_v1_generated_StorageTransferService_ListTransferJobs_sync] diff --git a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/pause_transfer_operation.php b/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/pause_transfer_operation.php deleted file mode 100644 index bbd600ef9754..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/pause_transfer_operation.php +++ /dev/null @@ -1,68 +0,0 @@ -setName($name); - - // Call the API and handle any network failures. - try { - $storageTransferServiceClient->pauseTransferOperation($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 -{ - $name = '[NAME]'; - - pause_transfer_operation_sample($name); -} -// [END storagetransfer_v1_generated_StorageTransferService_PauseTransferOperation_sync] diff --git a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/resume_transfer_operation.php b/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/resume_transfer_operation.php deleted file mode 100644 index 8c24f0462fb6..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/resume_transfer_operation.php +++ /dev/null @@ -1,68 +0,0 @@ -setName($name); - - // Call the API and handle any network failures. - try { - $storageTransferServiceClient->resumeTransferOperation($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 -{ - $name = '[NAME]'; - - resume_transfer_operation_sample($name); -} -// [END storagetransfer_v1_generated_StorageTransferService_ResumeTransferOperation_sync] diff --git a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/run_transfer_job.php b/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/run_transfer_job.php deleted file mode 100644 index 92fe27f2d8fe..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/run_transfer_job.php +++ /dev/null @@ -1,86 +0,0 @@ -setJobName($jobName) - ->setProjectId($projectId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $storageTransferServiceClient->runTransferJob($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 -{ - $jobName = '[JOB_NAME]'; - $projectId = '[PROJECT_ID]'; - - run_transfer_job_sample($jobName, $projectId); -} -// [END storagetransfer_v1_generated_StorageTransferService_RunTransferJob_sync] diff --git a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/update_agent_pool.php b/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/update_agent_pool.php deleted file mode 100644 index 3fb072f3e14a..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/update_agent_pool.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($agentPoolName); - $request = (new UpdateAgentPoolRequest()) - ->setAgentPool($agentPool); - - // Call the API and handle any network failures. - try { - /** @var AgentPool $response */ - $response = $storageTransferServiceClient->updateAgentPool($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 -{ - $agentPoolName = '[NAME]'; - - update_agent_pool_sample($agentPoolName); -} -// [END storagetransfer_v1_generated_StorageTransferService_UpdateAgentPool_sync] diff --git a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/update_transfer_job.php b/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/update_transfer_job.php deleted file mode 100644 index 07be9c36746b..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/samples/V1/StorageTransferServiceClient/update_transfer_job.php +++ /dev/null @@ -1,83 +0,0 @@ -setJobName($jobName) - ->setProjectId($projectId) - ->setTransferJob($transferJob); - - // Call the API and handle any network failures. - try { - /** @var TransferJob $response */ - $response = $storageTransferServiceClient->updateTransferJob($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 -{ - $jobName = '[JOB_NAME]'; - $projectId = '[PROJECT_ID]'; - - update_transfer_job_sample($jobName, $projectId); -} -// [END storagetransfer_v1_generated_StorageTransferService_UpdateTransferJob_sync] diff --git a/owl-bot-staging/StorageTransfer/v1/src/V1/Client/StorageTransferServiceClient.php b/owl-bot-staging/StorageTransfer/v1/src/V1/Client/StorageTransferServiceClient.php deleted file mode 100644 index ce122b5f1094..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/src/V1/Client/StorageTransferServiceClient.php +++ /dev/null @@ -1,688 +0,0 @@ - createAgentPoolAsync(CreateAgentPoolRequest $request, array $optionalArgs = []) - * @method PromiseInterface createTransferJobAsync(CreateTransferJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAgentPoolAsync(DeleteAgentPoolRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteTransferJobAsync(DeleteTransferJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAgentPoolAsync(GetAgentPoolRequest $request, array $optionalArgs = []) - * @method PromiseInterface getGoogleServiceAccountAsync(GetGoogleServiceAccountRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTransferJobAsync(GetTransferJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAgentPoolsAsync(ListAgentPoolsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTransferJobsAsync(ListTransferJobsRequest $request, array $optionalArgs = []) - * @method PromiseInterface pauseTransferOperationAsync(PauseTransferOperationRequest $request, array $optionalArgs = []) - * @method PromiseInterface resumeTransferOperationAsync(ResumeTransferOperationRequest $request, array $optionalArgs = []) - * @method PromiseInterface runTransferJobAsync(RunTransferJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAgentPoolAsync(UpdateAgentPoolRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateTransferJobAsync(UpdateTransferJobRequest $request, array $optionalArgs = []) - */ -final class StorageTransferServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.storagetransfer.v1.StorageTransferService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'storagetransfer.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'storagetransfer.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', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/storage_transfer_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/storage_transfer_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/storage_transfer_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/storage_transfer_service_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 = isset($this->descriptors[$methodName]['longRunning']) ? $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 agent_pools - * resource. - * - * @param string $projectId - * @param string $agentPoolId - * - * @return string The formatted agent_pools resource. - */ - public static function agentPoolsName(string $projectId, string $agentPoolId): string - { - return self::getPathTemplate('agentPools')->render([ - 'project_id' => $projectId, - 'agent_pool_id' => $agentPoolId, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - agentPools: projects/{project_id}/agentPools/{agent_pool_id} - * - * 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 $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 'storagetransfer.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @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 - * } - * - * @throws ValidationException - */ - public function __construct(array $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 agent pool resource. - * - * The async variant is {@see StorageTransferServiceClient::createAgentPoolAsync()} - * . - * - * @example samples/V1/StorageTransferServiceClient/create_agent_pool.php - * - * @param CreateAgentPoolRequest $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 AgentPool - * - * @throws ApiException Thrown if the API call fails. - */ - public function createAgentPool(CreateAgentPoolRequest $request, array $callOptions = []): AgentPool - { - return $this->startApiCall('CreateAgentPool', $request, $callOptions)->wait(); - } - - /** - * Creates a transfer job that runs periodically. - * - * The async variant is - * {@see StorageTransferServiceClient::createTransferJobAsync()} . - * - * @example samples/V1/StorageTransferServiceClient/create_transfer_job.php - * - * @param CreateTransferJobRequest $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 TransferJob - * - * @throws ApiException Thrown if the API call fails. - */ - public function createTransferJob(CreateTransferJobRequest $request, array $callOptions = []): TransferJob - { - return $this->startApiCall('CreateTransferJob', $request, $callOptions)->wait(); - } - - /** - * Deletes an agent pool. - * - * The async variant is {@see StorageTransferServiceClient::deleteAgentPoolAsync()} - * . - * - * @example samples/V1/StorageTransferServiceClient/delete_agent_pool.php - * - * @param DeleteAgentPoolRequest $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 deleteAgentPool(DeleteAgentPoolRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteAgentPool', $request, $callOptions)->wait(); - } - - /** - * Deletes a transfer job. Deleting a transfer job sets its status to - * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED]. - * - * The async variant is - * {@see StorageTransferServiceClient::deleteTransferJobAsync()} . - * - * @example samples/V1/StorageTransferServiceClient/delete_transfer_job.php - * - * @param DeleteTransferJobRequest $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 deleteTransferJob(DeleteTransferJobRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteTransferJob', $request, $callOptions)->wait(); - } - - /** - * Gets an agent pool. - * - * The async variant is {@see StorageTransferServiceClient::getAgentPoolAsync()} . - * - * @example samples/V1/StorageTransferServiceClient/get_agent_pool.php - * - * @param GetAgentPoolRequest $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 AgentPool - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAgentPool(GetAgentPoolRequest $request, array $callOptions = []): AgentPool - { - return $this->startApiCall('GetAgentPool', $request, $callOptions)->wait(); - } - - /** - * Returns the Google service account that is used by Storage Transfer - * Service to access buckets in the project where transfers - * run or in other projects. Each Google service account is associated - * with one Google Cloud project. Users - * should add this service account to the Google Cloud Storage bucket - * ACLs to grant access to Storage Transfer Service. This service - * account is created and owned by Storage Transfer Service and can - * only be used by Storage Transfer Service. - * - * The async variant is - * {@see StorageTransferServiceClient::getGoogleServiceAccountAsync()} . - * - * @example samples/V1/StorageTransferServiceClient/get_google_service_account.php - * - * @param GetGoogleServiceAccountRequest $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 GoogleServiceAccount - * - * @throws ApiException Thrown if the API call fails. - */ - public function getGoogleServiceAccount(GetGoogleServiceAccountRequest $request, array $callOptions = []): GoogleServiceAccount - { - return $this->startApiCall('GetGoogleServiceAccount', $request, $callOptions)->wait(); - } - - /** - * Gets a transfer job. - * - * The async variant is {@see StorageTransferServiceClient::getTransferJobAsync()} - * . - * - * @example samples/V1/StorageTransferServiceClient/get_transfer_job.php - * - * @param GetTransferJobRequest $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 TransferJob - * - * @throws ApiException Thrown if the API call fails. - */ - public function getTransferJob(GetTransferJobRequest $request, array $callOptions = []): TransferJob - { - return $this->startApiCall('GetTransferJob', $request, $callOptions)->wait(); - } - - /** - * Lists agent pools. - * - * The async variant is {@see StorageTransferServiceClient::listAgentPoolsAsync()} - * . - * - * @example samples/V1/StorageTransferServiceClient/list_agent_pools.php - * - * @param ListAgentPoolsRequest $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 listAgentPools(ListAgentPoolsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAgentPools', $request, $callOptions); - } - - /** - * Lists transfer jobs. - * - * The async variant is - * {@see StorageTransferServiceClient::listTransferJobsAsync()} . - * - * @example samples/V1/StorageTransferServiceClient/list_transfer_jobs.php - * - * @param ListTransferJobsRequest $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 listTransferJobs(ListTransferJobsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListTransferJobs', $request, $callOptions); - } - - /** - * Pauses a transfer operation. - * - * The async variant is - * {@see StorageTransferServiceClient::pauseTransferOperationAsync()} . - * - * @example samples/V1/StorageTransferServiceClient/pause_transfer_operation.php - * - * @param PauseTransferOperationRequest $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 pauseTransferOperation(PauseTransferOperationRequest $request, array $callOptions = []): void - { - $this->startApiCall('PauseTransferOperation', $request, $callOptions)->wait(); - } - - /** - * Resumes a transfer operation that is paused. - * - * The async variant is - * {@see StorageTransferServiceClient::resumeTransferOperationAsync()} . - * - * @example samples/V1/StorageTransferServiceClient/resume_transfer_operation.php - * - * @param ResumeTransferOperationRequest $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 resumeTransferOperation(ResumeTransferOperationRequest $request, array $callOptions = []): void - { - $this->startApiCall('ResumeTransferOperation', $request, $callOptions)->wait(); - } - - /** - * Starts a new operation for the specified transfer job. - * A `TransferJob` has a maximum of one active `TransferOperation`. If this - * method is called while a `TransferOperation` is active, an error is - * returned. - * - * The async variant is {@see StorageTransferServiceClient::runTransferJobAsync()} - * . - * - * @example samples/V1/StorageTransferServiceClient/run_transfer_job.php - * - * @param RunTransferJobRequest $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 runTransferJob(RunTransferJobRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('RunTransferJob', $request, $callOptions)->wait(); - } - - /** - * Updates an existing agent pool resource. - * - * The async variant is {@see StorageTransferServiceClient::updateAgentPoolAsync()} - * . - * - * @example samples/V1/StorageTransferServiceClient/update_agent_pool.php - * - * @param UpdateAgentPoolRequest $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 AgentPool - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateAgentPool(UpdateAgentPoolRequest $request, array $callOptions = []): AgentPool - { - return $this->startApiCall('UpdateAgentPool', $request, $callOptions)->wait(); - } - - /** - * Updates a transfer job. Updating a job's transfer spec does not affect - * transfer operations that are running already. - * - * **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status] - * field can be modified using this RPC (for example, to set a job's status to - * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED], - * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or - * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]). - * - * The async variant is - * {@see StorageTransferServiceClient::updateTransferJobAsync()} . - * - * @example samples/V1/StorageTransferServiceClient/update_transfer_job.php - * - * @param UpdateTransferJobRequest $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 TransferJob - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateTransferJob(UpdateTransferJobRequest $request, array $callOptions = []): TransferJob - { - return $this->startApiCall('UpdateTransferJob', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/StorageTransfer/v1/src/V1/gapic_metadata.json b/owl-bot-staging/StorageTransfer/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 357d3d96c332..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.storagetransfer.v1", - "libraryPackage": "Google\\Cloud\\StorageTransfer\\V1", - "services": { - "StorageTransferService": { - "clients": { - "grpc": { - "libraryClient": "StorageTransferServiceGapicClient", - "rpcs": { - "CreateAgentPool": { - "methods": [ - "createAgentPool" - ] - }, - "CreateTransferJob": { - "methods": [ - "createTransferJob" - ] - }, - "DeleteAgentPool": { - "methods": [ - "deleteAgentPool" - ] - }, - "DeleteTransferJob": { - "methods": [ - "deleteTransferJob" - ] - }, - "GetAgentPool": { - "methods": [ - "getAgentPool" - ] - }, - "GetGoogleServiceAccount": { - "methods": [ - "getGoogleServiceAccount" - ] - }, - "GetTransferJob": { - "methods": [ - "getTransferJob" - ] - }, - "ListAgentPools": { - "methods": [ - "listAgentPools" - ] - }, - "ListTransferJobs": { - "methods": [ - "listTransferJobs" - ] - }, - "PauseTransferOperation": { - "methods": [ - "pauseTransferOperation" - ] - }, - "ResumeTransferOperation": { - "methods": [ - "resumeTransferOperation" - ] - }, - "RunTransferJob": { - "methods": [ - "runTransferJob" - ] - }, - "UpdateAgentPool": { - "methods": [ - "updateAgentPool" - ] - }, - "UpdateTransferJob": { - "methods": [ - "updateTransferJob" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/StorageTransfer/v1/src/V1/resources/storage_transfer_service_client_config.json b/owl-bot-staging/StorageTransfer/v1/src/V1/resources/storage_transfer_service_client_config.json deleted file mode 100644 index 52816cb2166d..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/src/V1/resources/storage_transfer_service_client_config.json +++ /dev/null @@ -1,114 +0,0 @@ -{ - "interfaces": { - "google.storagetransfer.v1.StorageTransferService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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": { - "CreateAgentPool": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateTransferJob": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAgentPool": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteTransferJob": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAgentPool": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetGoogleServiceAccount": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetTransferJob": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAgentPools": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListTransferJobs": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "PauseTransferOperation": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ResumeTransferOperation": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RunTransferJob": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateAgentPool": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateTransferJob": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/StorageTransfer/v1/src/V1/resources/storage_transfer_service_descriptor_config.php b/owl-bot-staging/StorageTransfer/v1/src/V1/resources/storage_transfer_service_descriptor_config.php deleted file mode 100644 index 02ba6f580f9d..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/src/V1/resources/storage_transfer_service_descriptor_config.php +++ /dev/null @@ -1,207 +0,0 @@ - [ - 'google.storagetransfer.v1.StorageTransferService' => [ - 'RunTransferJob' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\StorageTransfer\V1\TransferOperation', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'job_name', - 'fieldAccessors' => [ - 'getJobName', - ], - ], - ], - ], - 'CreateAgentPool' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\StorageTransfer\V1\AgentPool', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - ], - ], - 'CreateTransferJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\StorageTransfer\V1\TransferJob', - ], - 'DeleteAgentPool' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTransferJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'job_name', - 'fieldAccessors' => [ - 'getJobName', - ], - ], - ], - ], - 'GetAgentPool' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\StorageTransfer\V1\AgentPool', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetGoogleServiceAccount' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\StorageTransfer\V1\GoogleServiceAccount', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - ], - ], - 'GetTransferJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\StorageTransfer\V1\TransferJob', - 'headerParams' => [ - [ - 'keyName' => 'job_name', - 'fieldAccessors' => [ - 'getJobName', - ], - ], - ], - ], - 'ListAgentPools' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAgentPools', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\StorageTransfer\V1\ListAgentPoolsResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - ], - ], - 'ListTransferJobs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getTransferJobs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\StorageTransfer\V1\ListTransferJobsResponse', - ], - 'PauseTransferOperation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ResumeTransferOperation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateAgentPool' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\StorageTransfer\V1\AgentPool', - 'headerParams' => [ - [ - 'keyName' => 'agent_pool.name', - 'fieldAccessors' => [ - 'getAgentPool', - 'getName', - ], - ], - ], - ], - 'UpdateTransferJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\StorageTransfer\V1\TransferJob', - 'headerParams' => [ - [ - 'keyName' => 'job_name', - 'fieldAccessors' => [ - 'getJobName', - ], - ], - ], - ], - 'templateMap' => [ - 'agentPools' => 'projects/{project_id}/agentPools/{agent_pool_id}', - ], - ], - ], -]; diff --git a/owl-bot-staging/StorageTransfer/v1/src/V1/resources/storage_transfer_service_rest_client_config.php b/owl-bot-staging/StorageTransfer/v1/src/V1/resources/storage_transfer_service_rest_client_config.php deleted file mode 100644 index 14d19decd51f..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/src/V1/resources/storage_transfer_service_rest_client_config.php +++ /dev/null @@ -1,225 +0,0 @@ - [ - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=transferOperations/**}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=transferOperations/**}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=transferOperations}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.storagetransfer.v1.StorageTransferService' => [ - 'CreateAgentPool' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id=*}/agentPools', - 'body' => 'agent_pool', - 'placeholders' => [ - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - 'queryParams' => [ - 'agent_pool_id', - ], - ], - 'CreateTransferJob' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/transferJobs', - 'body' => 'transfer_job', - ], - 'DeleteAgentPool' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/agentPools/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTransferJob' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{job_name=transferJobs/**}', - 'placeholders' => [ - 'job_name' => [ - 'getters' => [ - 'getJobName', - ], - ], - ], - 'queryParams' => [ - 'project_id', - ], - ], - 'GetAgentPool' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/agentPools/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetGoogleServiceAccount' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/googleServiceAccounts/{project_id}', - 'placeholders' => [ - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'GetTransferJob' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{job_name=transferJobs/**}', - 'placeholders' => [ - 'job_name' => [ - 'getters' => [ - 'getJobName', - ], - ], - ], - 'queryParams' => [ - 'project_id', - ], - ], - 'ListAgentPools' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id=*}/agentPools', - 'placeholders' => [ - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'ListTransferJobs' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/transferJobs', - 'queryParams' => [ - 'filter', - ], - ], - 'PauseTransferOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=transferOperations/**}:pause', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ResumeTransferOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=transferOperations/**}:resume', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'RunTransferJob' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{job_name=transferJobs/**}:run', - 'body' => '*', - 'placeholders' => [ - 'job_name' => [ - 'getters' => [ - 'getJobName', - ], - ], - ], - ], - 'UpdateAgentPool' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{agent_pool.name=projects/*/agentPools/*}', - 'body' => 'agent_pool', - 'placeholders' => [ - 'agent_pool.name' => [ - 'getters' => [ - 'getAgentPool', - 'getName', - ], - ], - ], - ], - 'UpdateTransferJob' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{job_name=transferJobs/**}', - 'body' => '*', - 'placeholders' => [ - 'job_name' => [ - 'getters' => [ - 'getJobName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/StorageTransfer/v1/tests/Unit/V1/Client/StorageTransferServiceClientTest.php b/owl-bot-staging/StorageTransfer/v1/tests/Unit/V1/Client/StorageTransferServiceClientTest.php deleted file mode 100644 index 8e04ba0e2c08..000000000000 --- a/owl-bot-staging/StorageTransfer/v1/tests/Unit/V1/Client/StorageTransferServiceClientTest.php +++ /dev/null @@ -1,1158 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return StorageTransferServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new StorageTransferServiceClient($options); - } - - /** @test */ - public function createAgentPoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new AgentPool(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $agentPool = new AgentPool(); - $agentPoolName = 'agentPoolName-2036536596'; - $agentPool->setName($agentPoolName); - $agentPoolId = 'agentPoolId-773019420'; - $request = (new CreateAgentPoolRequest()) - ->setProjectId($projectId) - ->setAgentPool($agentPool) - ->setAgentPoolId($agentPoolId); - $response = $gapicClient->createAgentPool($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storagetransfer.v1.StorageTransferService/CreateAgentPool', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getAgentPool(); - $this->assertProtobufEquals($agentPool, $actualValue); - $actualValue = $actualRequestObject->getAgentPoolId(); - $this->assertProtobufEquals($agentPoolId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAgentPoolExceptionTest() - { - $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 - $projectId = 'projectId-1969970175'; - $agentPool = new AgentPool(); - $agentPoolName = 'agentPoolName-2036536596'; - $agentPool->setName($agentPoolName); - $agentPoolId = 'agentPoolId-773019420'; - $request = (new CreateAgentPoolRequest()) - ->setProjectId($projectId) - ->setAgentPool($agentPool) - ->setAgentPoolId($agentPoolId); - try { - $gapicClient->createAgentPool($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 createTransferJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $description = 'description-1724546052'; - $projectId = 'projectId-1969970175'; - $latestOperationName = 'latestOperationName1224975899'; - $expectedResponse = new TransferJob(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setProjectId($projectId); - $expectedResponse->setLatestOperationName($latestOperationName); - $transport->addResponse($expectedResponse); - // Mock request - $transferJob = new TransferJob(); - $request = (new CreateTransferJobRequest()) - ->setTransferJob($transferJob); - $response = $gapicClient->createTransferJob($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storagetransfer.v1.StorageTransferService/CreateTransferJob', $actualFuncCall); - $actualValue = $actualRequestObject->getTransferJob(); - $this->assertProtobufEquals($transferJob, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createTransferJobExceptionTest() - { - $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 - $transferJob = new TransferJob(); - $request = (new CreateTransferJobRequest()) - ->setTransferJob($transferJob); - try { - $gapicClient->createTransferJob($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 deleteAgentPoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $request = (new DeleteAgentPoolRequest()) - ->setName($name); - $gapicClient->deleteAgentPool($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storagetransfer.v1.StorageTransferService/DeleteAgentPool', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAgentPoolExceptionTest() - { - $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 - $name = 'name3373707'; - $request = (new DeleteAgentPoolRequest()) - ->setName($name); - try { - $gapicClient->deleteAgentPool($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 deleteTransferJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $jobName = 'jobName-1615239731'; - $projectId = 'projectId-1969970175'; - $request = (new DeleteTransferJobRequest()) - ->setJobName($jobName) - ->setProjectId($projectId); - $gapicClient->deleteTransferJob($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storagetransfer.v1.StorageTransferService/DeleteTransferJob', $actualFuncCall); - $actualValue = $actualRequestObject->getJobName(); - $this->assertProtobufEquals($jobName, $actualValue); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteTransferJobExceptionTest() - { - $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 - $jobName = 'jobName-1615239731'; - $projectId = 'projectId-1969970175'; - $request = (new DeleteTransferJobRequest()) - ->setJobName($jobName) - ->setProjectId($projectId); - try { - $gapicClient->deleteTransferJob($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 getAgentPoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new AgentPool(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $request = (new GetAgentPoolRequest()) - ->setName($name); - $response = $gapicClient->getAgentPool($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storagetransfer.v1.StorageTransferService/GetAgentPool', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAgentPoolExceptionTest() - { - $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 - $name = 'name3373707'; - $request = (new GetAgentPoolRequest()) - ->setName($name); - try { - $gapicClient->getAgentPool($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 getGoogleServiceAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $accountEmail = 'accountEmail-539286774'; - $subjectId = 'subjectId-573637362'; - $expectedResponse = new GoogleServiceAccount(); - $expectedResponse->setAccountEmail($accountEmail); - $expectedResponse->setSubjectId($subjectId); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $request = (new GetGoogleServiceAccountRequest()) - ->setProjectId($projectId); - $response = $gapicClient->getGoogleServiceAccount($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storagetransfer.v1.StorageTransferService/GetGoogleServiceAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGoogleServiceAccountExceptionTest() - { - $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 - $projectId = 'projectId-1969970175'; - $request = (new GetGoogleServiceAccountRequest()) - ->setProjectId($projectId); - try { - $gapicClient->getGoogleServiceAccount($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 getTransferJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $description = 'description-1724546052'; - $projectId2 = 'projectId2939242356'; - $latestOperationName = 'latestOperationName1224975899'; - $expectedResponse = new TransferJob(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setLatestOperationName($latestOperationName); - $transport->addResponse($expectedResponse); - // Mock request - $jobName = 'jobName-1615239731'; - $projectId = 'projectId-1969970175'; - $request = (new GetTransferJobRequest()) - ->setJobName($jobName) - ->setProjectId($projectId); - $response = $gapicClient->getTransferJob($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storagetransfer.v1.StorageTransferService/GetTransferJob', $actualFuncCall); - $actualValue = $actualRequestObject->getJobName(); - $this->assertProtobufEquals($jobName, $actualValue); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTransferJobExceptionTest() - { - $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 - $jobName = 'jobName-1615239731'; - $projectId = 'projectId-1969970175'; - $request = (new GetTransferJobRequest()) - ->setJobName($jobName) - ->setProjectId($projectId); - try { - $gapicClient->getTransferJob($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 listAgentPoolsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $agentPoolsElement = new AgentPool(); - $agentPools = [ - $agentPoolsElement, - ]; - $expectedResponse = new ListAgentPoolsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAgentPools($agentPools); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $request = (new ListAgentPoolsRequest()) - ->setProjectId($projectId); - $response = $gapicClient->listAgentPools($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAgentPools()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storagetransfer.v1.StorageTransferService/ListAgentPools', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAgentPoolsExceptionTest() - { - $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 - $projectId = 'projectId-1969970175'; - $request = (new ListAgentPoolsRequest()) - ->setProjectId($projectId); - try { - $gapicClient->listAgentPools($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 listTransferJobsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $transferJobsElement = new TransferJob(); - $transferJobs = [ - $transferJobsElement, - ]; - $expectedResponse = new ListTransferJobsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTransferJobs($transferJobs); - $transport->addResponse($expectedResponse); - // Mock request - $filter = 'filter-1274492040'; - $request = (new ListTransferJobsRequest()) - ->setFilter($filter); - $response = $gapicClient->listTransferJobs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getTransferJobs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storagetransfer.v1.StorageTransferService/ListTransferJobs', $actualFuncCall); - $actualValue = $actualRequestObject->getFilter(); - $this->assertProtobufEquals($filter, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTransferJobsExceptionTest() - { - $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 - $filter = 'filter-1274492040'; - $request = (new ListTransferJobsRequest()) - ->setFilter($filter); - try { - $gapicClient->listTransferJobs($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 pauseTransferOperationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $request = (new PauseTransferOperationRequest()) - ->setName($name); - $gapicClient->pauseTransferOperation($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storagetransfer.v1.StorageTransferService/PauseTransferOperation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function pauseTransferOperationExceptionTest() - { - $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 - $name = 'name3373707'; - $request = (new PauseTransferOperationRequest()) - ->setName($name); - try { - $gapicClient->pauseTransferOperation($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 resumeTransferOperationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $request = (new ResumeTransferOperationRequest()) - ->setName($name); - $gapicClient->resumeTransferOperation($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storagetransfer.v1.StorageTransferService/ResumeTransferOperation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function resumeTransferOperationExceptionTest() - { - $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 - $name = 'name3373707'; - $request = (new ResumeTransferOperationRequest()) - ->setName($name); - try { - $gapicClient->resumeTransferOperation($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 runTransferJobTest() - { - $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/runTransferJobTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/runTransferJobTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $jobName = 'jobName-1615239731'; - $projectId = 'projectId-1969970175'; - $request = (new RunTransferJobRequest()) - ->setJobName($jobName) - ->setProjectId($projectId); - $response = $gapicClient->runTransferJob($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.storagetransfer.v1.StorageTransferService/RunTransferJob', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getJobName(); - $this->assertProtobufEquals($jobName, $actualValue); - $actualValue = $actualApiRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/runTransferJobTest'); - $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 runTransferJobExceptionTest() - { - $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/runTransferJobTest'); - $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 - $jobName = 'jobName-1615239731'; - $projectId = 'projectId-1969970175'; - $request = (new RunTransferJobRequest()) - ->setJobName($jobName) - ->setProjectId($projectId); - $response = $gapicClient->runTransferJob($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/runTransferJobTest'); - 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 updateAgentPoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new AgentPool(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $agentPool = new AgentPool(); - $agentPoolName = 'agentPoolName-2036536596'; - $agentPool->setName($agentPoolName); - $request = (new UpdateAgentPoolRequest()) - ->setAgentPool($agentPool); - $response = $gapicClient->updateAgentPool($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storagetransfer.v1.StorageTransferService/UpdateAgentPool', $actualFuncCall); - $actualValue = $actualRequestObject->getAgentPool(); - $this->assertProtobufEquals($agentPool, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAgentPoolExceptionTest() - { - $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 - $agentPool = new AgentPool(); - $agentPoolName = 'agentPoolName-2036536596'; - $agentPool->setName($agentPoolName); - $request = (new UpdateAgentPoolRequest()) - ->setAgentPool($agentPool); - try { - $gapicClient->updateAgentPool($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 updateTransferJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $description = 'description-1724546052'; - $projectId2 = 'projectId2939242356'; - $latestOperationName = 'latestOperationName1224975899'; - $expectedResponse = new TransferJob(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setLatestOperationName($latestOperationName); - $transport->addResponse($expectedResponse); - // Mock request - $jobName = 'jobName-1615239731'; - $projectId = 'projectId-1969970175'; - $transferJob = new TransferJob(); - $request = (new UpdateTransferJobRequest()) - ->setJobName($jobName) - ->setProjectId($projectId) - ->setTransferJob($transferJob); - $response = $gapicClient->updateTransferJob($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storagetransfer.v1.StorageTransferService/UpdateTransferJob', $actualFuncCall); - $actualValue = $actualRequestObject->getJobName(); - $this->assertProtobufEquals($jobName, $actualValue); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getTransferJob(); - $this->assertProtobufEquals($transferJob, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateTransferJobExceptionTest() - { - $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 - $jobName = 'jobName-1615239731'; - $projectId = 'projectId-1969970175'; - $transferJob = new TransferJob(); - $request = (new UpdateTransferJobRequest()) - ->setJobName($jobName) - ->setProjectId($projectId) - ->setTransferJob($transferJob); - try { - $gapicClient->updateTransferJob($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 createAgentPoolAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new AgentPool(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $agentPool = new AgentPool(); - $agentPoolName = 'agentPoolName-2036536596'; - $agentPool->setName($agentPoolName); - $agentPoolId = 'agentPoolId-773019420'; - $request = (new CreateAgentPoolRequest()) - ->setProjectId($projectId) - ->setAgentPool($agentPool) - ->setAgentPoolId($agentPoolId); - $response = $gapicClient->createAgentPoolAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.storagetransfer.v1.StorageTransferService/CreateAgentPool', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getAgentPool(); - $this->assertProtobufEquals($agentPool, $actualValue); - $actualValue = $actualRequestObject->getAgentPoolId(); - $this->assertProtobufEquals($agentPoolId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -}