From 711370daf5f37e348fa31ba16fd67ffbb405c1d7 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 28 Oct 2020 05:21:21 -0700 Subject: [PATCH] fix(cloudbuild): update the API #### cloudbuild:v1 The following keys were changed: - resources.projects.resources.builds.methods.list.parameters.pageToken.description - resources.projects.resources.locations.resources.builds.methods.list.parameters.pageToken.description - schemas.ListBuildsResponse.properties.nextPageToken.description --- discovery/cloudbuild-v1.json | 8 ++++---- src/apis/cloudbuild/v1.ts | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/discovery/cloudbuild-v1.json b/discovery/cloudbuild-v1.json index 49cc2134b7e..049d2508135 100644 --- a/discovery/cloudbuild-v1.json +++ b/discovery/cloudbuild-v1.json @@ -289,7 +289,7 @@ "type": "integer" }, "pageToken": { - "description": "Token to provide to skip to a particular spot in the list.", + "description": "The page token for the next page of Builds. If unspecified, the first page of results is returned. If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In this case, the token should be discarded, and pagination should be restarted from the first page of results. See https://google.aip.dev/158 for more.", "location": "query", "type": "string" }, @@ -470,7 +470,7 @@ "type": "integer" }, "pageToken": { - "description": "Token to provide to skip to a particular spot in the list.", + "description": "The page token for the next page of Builds. If unspecified, the first page of results is returned. If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In this case, the token should be discarded, and pagination should be restarted from the first page of results. See https://google.aip.dev/158 for more.", "location": "query", "type": "string" }, @@ -783,7 +783,7 @@ } } }, - "revision": "20201009", + "revision": "20201022", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ArtifactObjects": { @@ -1485,7 +1485,7 @@ "type": "array" }, "nextPageToken": { - "description": "Token to receive the next page of results.", + "description": "Token to receive the next page of results. This will be absent if the end of the response list has been reached.", "type": "string" } }, diff --git a/src/apis/cloudbuild/v1.ts b/src/apis/cloudbuild/v1.ts index 67fb51b6186..6cf902b7572 100644 --- a/src/apis/cloudbuild/v1.ts +++ b/src/apis/cloudbuild/v1.ts @@ -560,7 +560,7 @@ export namespace cloudbuild_v1 { */ builds?: Schema$Build[]; /** - * Token to receive the next page of results. + * Token to receive the next page of results. This will be absent if the end of the response list has been reached. */ nextPageToken?: string | null; } @@ -1795,7 +1795,7 @@ export namespace cloudbuild_v1 { * filter: 'placeholder-value', * // Number of results to return in the list. * pageSize: 'placeholder-value', - * // Token to provide to skip to a particular spot in the list. + * // The page token for the next page of Builds. If unspecified, the first page of results is returned. If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In this case, the token should be discarded, and pagination should be restarted from the first page of results. See https://google.aip.dev/158 for more. * pageToken: 'placeholder-value', * // The parent of the collection of `Builds`. Format: `projects/{project}/locations/location` * parent: 'placeholder-value', @@ -1822,7 +1822,7 @@ export namespace cloudbuild_v1 { * @param {object} params Parameters for request * @param {string=} params.filter The raw filter text to constrain the results. * @param {integer=} params.pageSize Number of results to return in the list. - * @param {string=} params.pageToken Token to provide to skip to a particular spot in the list. + * @param {string=} params.pageToken The page token for the next page of Builds. If unspecified, the first page of results is returned. If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In this case, the token should be discarded, and pagination should be restarted from the first page of results. See https://google.aip.dev/158 for more. * @param {string=} params.parent The parent of the collection of `Builds`. Format: `projects/{project}/locations/location` * @param {string} params.projectId Required. ID of the project. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -2118,7 +2118,7 @@ export namespace cloudbuild_v1 { */ pageSize?: number; /** - * Token to provide to skip to a particular spot in the list. + * The page token for the next page of Builds. If unspecified, the first page of results is returned. If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In this case, the token should be discarded, and pagination should be restarted from the first page of results. See https://google.aip.dev/158 for more. */ pageToken?: string; /** @@ -2689,7 +2689,7 @@ export namespace cloudbuild_v1 { * filter: 'placeholder-value', * // Number of results to return in the list. * pageSize: 'placeholder-value', - * // Token to provide to skip to a particular spot in the list. + * // The page token for the next page of Builds. If unspecified, the first page of results is returned. If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In this case, the token should be discarded, and pagination should be restarted from the first page of results. See https://google.aip.dev/158 for more. * pageToken: 'placeholder-value', * // The parent of the collection of `Builds`. Format: `projects/{project}/locations/location` * parent: 'projects/my-project/locations/my-location', @@ -2716,7 +2716,7 @@ export namespace cloudbuild_v1 { * @param {object} params Parameters for request * @param {string=} params.filter The raw filter text to constrain the results. * @param {integer=} params.pageSize Number of results to return in the list. - * @param {string=} params.pageToken Token to provide to skip to a particular spot in the list. + * @param {string=} params.pageToken The page token for the next page of Builds. If unspecified, the first page of results is returned. If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In this case, the token should be discarded, and pagination should be restarted from the first page of results. See https://google.aip.dev/158 for more. * @param {string} params.parent The parent of the collection of `Builds`. Format: `projects/{project}/locations/location` * @param {string=} params.projectId Required. ID of the project. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -3003,7 +3003,7 @@ export namespace cloudbuild_v1 { */ pageSize?: number; /** - * Token to provide to skip to a particular spot in the list. + * The page token for the next page of Builds. If unspecified, the first page of results is returned. If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In this case, the token should be discarded, and pagination should be restarted from the first page of results. See https://google.aip.dev/158 for more. */ pageToken?: string; /**