Skip to content

Commit 921c64d

Browse files
yoshi-automationsofisl
authored andcommitted
fix(storagetransfer): update the API
#### storagetransfer:v1 The following keys were changed: - resources.transferJobs.methods.list.parameters.filter.description - schemas.ReplicationSpec.description - schemas.ReplicationSpec.properties.gcsDataSink.description - schemas.ReplicationSpec.properties.gcsDataSource.description - schemas.ReplicationSpec.properties.objectConditions.description - schemas.ReplicationSpec.properties.transferOptions.description
1 parent e40cb95 commit 921c64d

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

discovery/storagetransfer-v1.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@
392392
],
393393
"parameters": {
394394
"filter": {
395-
"description": "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, DISABLED, and DELETED.",
395+
"description": "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 * DISABLED * 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`.",
396396
"location": "query",
397397
"required": true,
398398
"type": "string"
@@ -632,7 +632,7 @@
632632
}
633633
}
634634
},
635-
"revision": "20240622",
635+
"revision": "20240928",
636636
"rootUrl": "https://storagetransfer.googleapis.com/",
637637
"schemas": {
638638
"AgentPool": {
@@ -1368,24 +1368,24 @@
13681368
"type": "object"
13691369
},
13701370
"ReplicationSpec": {
1371-
"description": "Specifies the configuration for running a replication job.",
1371+
"description": "Specifies the configuration for a cross-bucket replication job. Cross-bucket replication copies new or updated objects from a source Cloud Storage bucket to a destination Cloud Storage bucket. Existing objects in the source bucket are not copied by a new cross-bucket replication job.",
13721372
"id": "ReplicationSpec",
13731373
"properties": {
13741374
"gcsDataSink": {
13751375
"$ref": "GcsData",
1376-
"description": "Specifies cloud Storage data sink."
1376+
"description": "The Cloud Storage bucket to which to replicate objects."
13771377
},
13781378
"gcsDataSource": {
13791379
"$ref": "GcsData",
1380-
"description": "Specifies cloud Storage data source."
1380+
"description": "The Cloud Storage bucket from which to replicate objects."
13811381
},
13821382
"objectConditions": {
13831383
"$ref": "ObjectConditions",
1384-
"description": "Specifies the object conditions to only include objects that satisfy these conditions in the set of data source objects. Object conditions based on objects' \"last modification time\" do not exclude objects in a data sink."
1384+
"description": "Object conditions that determine which objects are transferred. For replication jobs, only `include_prefixes` and `exclude_prefixes` are supported."
13851385
},
13861386
"transferOptions": {
13871387
"$ref": "TransferOptions",
1388-
"description": "Specifies the actions to be performed on the object during replication. Delete options are not supported for replication and when specified, the request fails with an INVALID_ARGUMENT error."
1388+
"description": "Specifies the metadata options to be applied during replication. Delete options are not supported. If a delete option is specified, the request fails with an INVALID_ARGUMENT error."
13891389
}
13901390
},
13911391
"type": "object"

src/apis/storagetransfer/v1.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -569,23 +569,23 @@ export namespace storagetransfer_v1 {
569569
rootDirectory?: string | null;
570570
}
571571
/**
572-
* Specifies the configuration for running a replication job.
572+
* Specifies the configuration for a cross-bucket replication job. Cross-bucket replication copies new or updated objects from a source Cloud Storage bucket to a destination Cloud Storage bucket. Existing objects in the source bucket are not copied by a new cross-bucket replication job.
573573
*/
574574
export interface Schema$ReplicationSpec {
575575
/**
576-
* Specifies cloud Storage data sink.
576+
* The Cloud Storage bucket to which to replicate objects.
577577
*/
578578
gcsDataSink?: Schema$GcsData;
579579
/**
580-
* Specifies cloud Storage data source.
580+
* The Cloud Storage bucket from which to replicate objects.
581581
*/
582582
gcsDataSource?: Schema$GcsData;
583583
/**
584-
* Specifies the object conditions to only include objects that satisfy these conditions in the set of data source objects. Object conditions based on objects' "last modification time" do not exclude objects in a data sink.
584+
* Object conditions that determine which objects are transferred. For replication jobs, only `include_prefixes` and `exclude_prefixes` are supported.
585585
*/
586586
objectConditions?: Schema$ObjectConditions;
587587
/**
588-
* Specifies the actions to be performed on the object during replication. Delete options are not supported for replication and when specified, the request fails with an INVALID_ARGUMENT error.
588+
* Specifies the metadata options to be applied during replication. Delete options are not supported. If a delete option is specified, the request fails with an INVALID_ARGUMENT error.
589589
*/
590590
transferOptions?: Schema$TransferOptions;
591591
}
@@ -2191,7 +2191,7 @@ export namespace storagetransfer_v1 {
21912191
export interface Params$Resource$Transferjobs$List
21922192
extends StandardParameters {
21932193
/**
2194-
* 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, DISABLED, and DELETED.
2194+
* 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 * DISABLED * 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`.
21952195
*/
21962196
filter?: string;
21972197
/**

0 commit comments

Comments
 (0)