Skip to content

Commit

Permalink
feat(storagetransfer)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.
#### storagetransfer:v1
The following keys were deleted:
- schemas.NotificationConfig.properties.eventTypes.enumDescriptions

The following keys were changed:
- resources.transferJobs.methods.get.parameters.jobName.description
- schemas.UpdateTransferJobRequest.properties.transferJob.description
  • Loading branch information
JustinBeckwith committed Oct 5, 2020
1 parent 3b2528f commit d386644
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
12 changes: 3 additions & 9 deletions discovery/storagetransfer-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
],
"parameters": {
"jobName": {
"description": "Required. The job to get.",
"description": "\" Required. The job to get.",
"location": "path",
"pattern": "^transferJobs/.*$",
"required": true,
Expand Down Expand Up @@ -396,7 +396,7 @@
}
}
},
"revision": "20200807",
"revision": "20200924",
"rootUrl": "https://storagetransfer.googleapis.com/",
"schemas": {
"AwsAccessKey": {
Expand Down Expand Up @@ -641,12 +641,6 @@
"properties": {
"eventTypes": {
"description": "Event types for which a notification is desired. If empty, send notifications for all event types.",
"enumDescriptions": [
"Illegal value, to avoid allowing a default.",
"`TransferOperation` completed with status SUCCESS.",
"`TransferOperation` completed with status FAILED.",
"`TransferOperation` completed with status ABORTED."
],
"items": {
"enum": [
"EVENT_TYPE_UNSPECIFIED",
Expand Down Expand Up @@ -1129,7 +1123,7 @@
},
"transferJob": {
"$ref": "TransferJob",
"description": "Required. The job to update. `transferJob` is expected to specify only four fields: description, transfer_spec, notification_config, and status. An `UpdateTransferJobRequest` that specifies other fields will be rejected with the error INVALID_ARGUMENT."
"description": "Required. The job to update. `transferJob` is expected to specify only four fields: description, transfer_spec, notification_config, and status. An `UpdateTransferJobRequest` that specifies other fields will be rejected with the error INVALID_ARGUMENT. Updating a job satus to DELETED requires `storagetransfer.jobs.delete` permissions."
},
"updateTransferJobFieldMask": {
"description": "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, transfer_spec, notification_config, and status. To update the `transfer_spec` of the job, a complete transfer specification must be provided. An incomplete specification missing any required fields will be rejected with the error INVALID_ARGUMENT.",
Expand Down
8 changes: 4 additions & 4 deletions src/apis/storagetransfer/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ export namespace storagetransfer_v1 {
*/
projectId?: string | null;
/**
* Required. The job to update. `transferJob` is expected to specify only four fields: description, transfer_spec, notification_config, and status. An `UpdateTransferJobRequest` that specifies other fields will be rejected with the error INVALID_ARGUMENT.
* Required. The job to update. `transferJob` is expected to specify only four fields: description, transfer_spec, notification_config, and status. An `UpdateTransferJobRequest` that specifies other fields will be rejected with the error INVALID_ARGUMENT. Updating a job satus to DELETED requires `storagetransfer.jobs.delete` permissions.
*/
transferJob?: Schema$TransferJob;
/**
Expand Down Expand Up @@ -987,7 +987,7 @@ export namespace storagetransfer_v1 {
*
* // Do the magic
* const res = await storagetransfer.transferJobs.get({
* // Required. The job to get.
* // " Required. The job to get.
* jobName: 'transferJobs/.*',
* // Required. The ID of the Google Cloud Platform Console project that owns the job.
* projectId: 'placeholder-value',
Expand Down Expand Up @@ -1018,7 +1018,7 @@ export namespace storagetransfer_v1 {
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.jobName Required. The job to get.
* @param {string} params.jobName " Required. The job to get.
* @param {string=} params.projectId Required. The ID of the Google Cloud Platform Console project that owns the job.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
Expand Down Expand Up @@ -1400,7 +1400,7 @@ export namespace storagetransfer_v1 {
}
export interface Params$Resource$Transferjobs$Get extends StandardParameters {
/**
* Required. The job to get.
* " Required. The job to get.
*/
jobName?: string;
/**
Expand Down

0 comments on commit d386644

Please sign in to comment.